home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
You can browse this item here: PREEMPTER
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| Mailbox text, 1st line "From cmarshall@acorn.co.uk Wed Apr 15 03:48:28 1992", ASCII text
| default
| |
100%
| TrID
| E-Mail message (Var. 2)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| x-fmt/111 Plain Text File
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| application/mbox
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 63 6d 61 | 72 73 68 61 6c 6c 40 61 |From cma|rshall@a|
|00000010| 63 6f 72 6e 2e 63 6f 2e | 75 6b 20 20 57 65 64 20 |corn.co.|uk Wed |
|00000020| 41 70 72 20 31 35 20 30 | 33 3a 34 38 3a 32 38 20 |Apr 15 0|3:48:28 |
|00000030| 31 39 39 32 0a 52 65 63 | 65 69 76 65 64 3a 20 66 |1992.Rec|eived: f|
|00000040| 72 6f 6d 20 75 6e 69 64 | 6f 2e 47 65 72 6d 61 6e |rom unid|o.German|
|00000050| 79 2e 45 55 2e 6e 65 74 | 20 62 79 20 68 65 6c 70 |y.EU.net| by help|
|00000060| 64 65 73 6b 2e 72 75 73 | 2e 75 6e 69 2d 73 74 75 |desk.rus|.uni-stu|
|00000070| 74 74 67 61 72 74 2e 64 | 65 20 28 35 2e 35 32 2f |ttgart.d|e (5.52/|
|00000080| 42 65 6c 57 75 65 2d 31 | 2e 30 53 47 28 73 75 62 |BelWue-1|.0SG(sub|
|00000090| 73 69 64 69 61 72 79 29 | 29 0a 09 28 66 6f 72 20 |sidiary)|)..(for |
|000000a0| 7a 72 7a 6d 30 31 31 31 | 29 20 69 64 20 41 41 31 |zrzm0111|) id AA1|
|000000b0| 31 35 30 39 3b 20 57 65 | 64 2c 20 31 35 20 41 70 |1509; We|d, 15 Ap|
|000000c0| 72 20 39 32 20 30 33 3a | 34 38 3a 32 38 20 4d 53 |r 92 03:|48:28 MS|
|000000d0| 54 0a 52 65 63 65 69 76 | 65 64 3a 20 66 72 6f 6d |T.Receiv|ed: from|
|000000e0| 20 65 72 6f 73 2e 75 6b | 6e 65 74 2e 61 63 2e 75 | eros.uk|net.ac.u|
|000000f0| 6b 20 0a 09 62 79 20 6d | 61 69 6c 2e 47 65 72 6d |k ..by m|ail.Germ|
|00000100| 61 6e 79 2e 45 55 2e 6e | 65 74 20 77 69 74 68 20 |any.EU.n|et with |
|00000110| 53 4d 54 50 20 28 35 2e | 36 35 2b 2f 55 4e 49 44 |SMTP (5.|65+/UNID|
|00000120| 4f 2d 32 2e 31 2e 30 2e | 62 29 0a 09 76 69 61 20 |O-2.1.0.|b)..via |
|00000130| 45 55 6e 65 74 20 66 6f | 72 20 68 65 6c 70 64 65 |EUnet fo|r helpde|
|00000140| 73 6b 2e 72 75 73 2e 75 | 6e 69 2d 73 74 75 74 74 |sk.rus.u|ni-stutt|
|00000150| 67 61 72 74 2e 64 65 0a | 09 69 64 20 41 41 32 38 |gart.de.|.id AA28|
|00000160| 32 34 33 3b 20 57 65 64 | 2c 20 31 35 20 41 70 72 |243; Wed|, 15 Apr|
|00000170| 20 39 32 20 30 33 3a 34 | 39 3a 35 34 20 2b 30 32 | 92 03:4|9:54 +02|
|00000180| 30 30 0a 52 65 63 65 69 | 76 65 64 3a 20 66 72 6f |00.Recei|ved: fro|
|00000190| 6d 20 61 63 6f 72 6e 2e | 63 6f 2e 75 6b 20 62 79 |m acorn.|co.uk by|
|000001a0| 20 65 72 6f 73 2e 75 6b | 6e 65 74 2e 61 63 2e 75 | eros.uk|net.ac.u|
|000001b0| 6b 20 77 69 74 68 20 55 | 55 43 50 20 0a 20 20 20 |k with U|UCP . |
|000001c0| 20 20 20 20 20 20 20 69 | 64 20 3c 32 33 33 39 38 | i|d <23398|
|000001d0| 2d 30 40 65 72 6f 73 2e | 75 6b 6e 65 74 2e 61 63 |-0@eros.|uknet.ac|
|000001e0| 2e 75 6b 3e 3b 20 57 65 | 64 2c 20 31 35 20 41 70 |.uk>; We|d, 15 Ap|
|000001f0| 72 20 31 39 39 32 20 30 | 32 3a 34 38 3a 31 35 20 |r 1992 0|2:48:15 |
|00000200| 2b 30 31 30 30 0a 52 65 | 63 65 69 76 65 64 3a 20 |+0100.Re|ceived: |
|00000210| 66 72 6f 6d 20 6f 61 6b | 2e 61 63 6f 72 6e 2e 63 |from oak|.acorn.c|
|00000220| 6f 2e 75 6b 20 62 79 20 | 61 63 6f 72 6e 2e 63 6f |o.uk by |acorn.co|
|00000230| 2e 75 6b 20 28 34 2e 31 | 2f 41 6d 33 32 29 20 69 |.uk (4.1|/Am32) i|
|00000240| 64 20 41 41 32 39 31 30 | 38 3b 0a 20 20 20 20 20 |d AA2910|8;. |
|00000250| 20 20 20 20 20 54 75 65 | 2c 20 31 34 20 41 70 72 | Tue|, 14 Apr|
|00000260| 20 39 32 20 31 30 3a 35 | 32 3a 33 30 20 42 53 54 | 92 10:5|2:30 BST|
|00000270| 0a 44 61 74 65 3a 20 54 | 75 65 2c 20 31 34 20 41 |.Date: T|ue, 14 A|
|00000280| 70 72 20 39 32 20 31 30 | 3a 35 32 3a 35 33 20 2b |pr 92 10|:52:53 +|
|00000290| 30 31 30 30 0a 46 72 6f | 6d 3a 20 63 6d 61 72 73 |0100.Fro|m: cmars|
|000002a0| 68 61 6c 6c 40 61 63 6f | 72 6e 2e 63 6f 2e 75 6b |hall@aco|rn.co.uk|
|000002b0| 20 28 43 68 72 69 73 20 | 4d 61 72 73 68 61 6c 6c | (Chris |Marshall|
|000002c0| 29 0a 54 6f 3a 20 7a 72 | 7a 6d 30 31 31 31 0a 53 |).To: zr|zm0111.S|
|000002d0| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 57 61 6e 74 |ubject: |Re: Want|
|000002e0| 65 64 3a 20 49 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ed: Info|rmation |
|000002f0| 61 62 6f 75 74 20 74 68 | 65 20 70 72 65 65 6d 70 |about th|e preemp|
|00000300| 74 65 72 0a 4d 65 73 73 | 61 67 65 2d 49 64 3a 20 |ter.Mess|age-Id: |
|00000310| 3c 32 39 45 41 42 39 38 | 35 40 63 6d 61 72 73 68 |<29EAB98|5@cmarsh|
|00000320| 61 6c 6c 3e 0a 53 74 61 | 74 75 73 3a 20 52 4f 0a |all>.Sta|tus: RO.|
|00000330| 0a 0a 49 6e 20 61 72 74 | 69 63 6c 65 20 3c 31 39 |..In art|icle <19|
|00000340| 39 32 41 70 72 31 33 2e | 31 38 33 39 33 36 2e 33 |92Apr13.|183936.3|
|00000350| 37 36 32 40 6e 65 77 73 | 2e 75 6e 69 2d 73 74 75 |762@news|.uni-stu|
|00000360| 74 74 67 61 72 74 2e 64 | 65 3e 20 79 6f 75 20 77 |ttgart.d|e> you w|
|00000370| 72 6f 74 65 3a 0a 0a 3e | 48 69 0a 3e 0a 3e 41 20 |rote:..>|Hi.>.>A |
|00000380| 66 65 77 20 77 65 65 6b | 73 20 61 67 6f 2c 20 73 |few week|s ago, s|
|00000390| 6f 6d 65 6f 6e 65 20 74 | 6f 6c 64 20 68 65 72 65 |omeone t|old here|
|000003a0| 2c 20 74 68 61 74 20 68 | 65 20 77 72 6f 74 65 20 |, that h|e wrote |
|000003b0| 61 20 74 6f 6f 6c 20 66 | 6f 72 20 70 72 65 65 6d |a tool f|or preem|
|000003c0| 70 74 69 76 65 0a 3e 6d | 75 6c 74 69 74 61 73 6b |ptive.>m|ultitask|
|000003d0| 69 6e 67 20 61 6e 64 20 | 77 69 6c 6c 20 70 75 62 |ing and |will pub|
|000003e0| 6c 69 63 20 69 74 20 69 | 6e 20 63 6f 6d 70 2e 62 |lic it i|n comp.b|
|000003f0| 69 6e 61 72 69 65 73 2e | 61 63 6f 72 6e 2e 0a 3e |inaries.|acorn..>|
|00000400| 55 6e 66 6f 72 74 75 6e | 61 74 6c 79 20 63 6f 6d |Unfortun|atly com|
|00000410| 70 2e 62 69 6e 61 72 69 | 65 73 2e 61 63 6f 72 6e |p.binari|es.acorn|
|00000420| 20 69 73 20 63 6c 6f 73 | 65 64 20 66 6f 72 20 61 | is clos|ed for a|
|00000430| 20 77 68 69 6c 65 2e 20 | 43 6f 75 6c 64 20 73 6f | while. |Could so|
|00000440| 6d 65 6f 6e 65 20 0a 3e | 67 69 76 65 20 6d 65 20 |meone .>|give me |
|00000450| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 73 20 61 62 6f |informat|ions abo|
|00000460| 75 74 20 74 68 65 20 61 | 75 74 68 6f 72 20 3f 0a |ut the a|uthor ?.|
|00000470| 0a 49 74 27 73 20 69 6e | 63 6c 75 64 65 64 20 68 |.It's in|cluded h|
|00000480| 65 72 65 2e 2e 2e 0a 0a | 3e 74 68 61 6e 6b 73 0a |ere.....|>thanks.|
|00000490| 3e 73 6f 20 6c 6f 6e 67 | 0a 3e 4d 55 46 54 49 0a |>so long|.>MUFTI.|
|000004a0| 3e 0a 3e 70 73 3a 0a 3e | 20 20 20 20 53 68 6f 75 |>.>ps:.>| Shou|
|000004b0| 6c 64 6e 27 74 20 74 68 | 65 20 6d 6f 64 65 72 61 |ldn't th|e modera|
|000004c0| 74 6f 72 20 6f 66 20 63 | 6f 6d 70 2e 62 69 6e 61 |tor of c|omp.bina|
|000004d0| 72 69 65 73 2e 61 63 6f | 72 6e 20 6c 61 79 20 61 |ries.aco|rn lay a|
|000004e0| 20 66 6f 72 77 61 72 64 | 20 74 6f 20 0a 3e 20 20 | forward| to .> |
|000004f0| 20 20 6f 6e 65 20 6f 66 | 20 74 68 65 20 66 74 70 | one of| the ftp|
|00000500| 2f 6d 61 69 6c 2d 73 65 | 72 76 65 72 73 2c 20 69 |/mail-se|rvers, i|
|00000510| 66 20 68 65 20 69 73 6e | 27 74 20 6f 6e 20 64 75 |f he isn|'t on du|
|00000520| 74 79 20 66 6f 72 20 61 | 20 6c 6f 6e 67 20 74 69 |ty for a| long ti|
|00000530| 6d 65 20 3f 0a 3e 20 20 | 20 20 54 68 65 20 73 6f |me ?.> | The so|
|00000540| 66 74 77 61 72 65 20 68 | 65 20 67 65 74 73 20 69 |ftware h|e gets i|
|00000550| 73 20 6e 6f 74 20 66 6f | 72 20 70 72 69 76 61 74 |s not fo|r privat|
|00000560| 65 20 41 63 6f 72 6e 20 | 6c 74 64 2e 20 75 73 65 |e Acorn |ltd. use|
|00000570| 20 2e 2e 2e 2e 2e 0a 0a | 57 65 20 63 6f 75 6c 64 | .......|We could|
|00000580| 20 66 6f 72 77 61 72 64 | 20 61 6c 6c 20 73 74 75 | forward| all stu|
|00000590| 66 66 20 74 6f 20 41 6c | 62 65 72 74 20 61 74 20 |ff to Al|bert at |
|000005a0| 4e 65 77 63 61 73 74 6c | 65 2e 20 54 68 65 20 72 |Newcastl|e. The r|
|000005b0| 65 61 73 6f 6e 73 20 74 | 68 61 74 20 0a 6e 6f 74 |easons t|hat .not|
|000005c0| 68 69 6e 67 20 68 61 73 | 20 62 65 65 6e 20 70 6f |hing has| been po|
|000005d0| 73 74 65 64 20 66 6f 72 | 20 61 20 77 68 69 6c 65 |sted for| a while|
|000005e0| 20 61 72 65 20 61 73 20 | 66 6f 6c 6c 6f 77 73 3a | are as |follows:|
|000005f0| 2d 0a 0a 20 20 20 20 20 | 20 20 20 61 29 20 50 68 |-.. | a) Ph|
|00000600| 69 6c 20 43 6f 6c 6d 65 | 72 20 69 73 20 69 6c 6c |il Colme|r is ill|
|00000610| 20 61 74 20 70 72 65 73 | 65 6e 74 3b 20 68 65 20 | at pres|ent; he |
|00000620| 77 6f 75 6c 64 20 6e 6f | 72 6d 61 6c 6c 79 20 68 |would no|rmally h|
|00000630| 61 6e 64 6c 65 0a 20 20 | 20 20 20 20 20 20 20 20 |andle. | |
|00000640| 20 63 6f 6d 70 2e 73 6f | 75 72 63 65 73 2e 61 63 | comp.so|urces.ac|
|00000650| 6f 72 6e 0a 0a 20 20 20 | 20 20 20 20 20 62 29 20 |orn.. | b) |
|00000660| 41 6c 61 6e 20 47 6c 6f | 76 65 72 20 61 6e 64 20 |Alan Glo|ver and |
|00000670| 6d 79 73 65 6c 66 20 61 | 72 65 20 76 2e 20 62 75 |myself a|re v. bu|
|00000680| 73 79 20 72 69 67 68 74 | 20 6e 6f 77 2e 20 49 20 |sy right| now. I |
|00000690| 65 78 70 65 63 74 20 74 | 6f 0a 20 20 20 20 20 20 |expect t|o. |
|000006a0| 20 20 20 20 20 62 65 67 | 69 6e 20 70 6f 73 74 69 | beg|in posti|
|000006b0| 6e 67 20 74 68 69 6e 67 | 73 20 61 67 61 69 6e 20 |ng thing|s again |
|000006c0| 73 6f 6f 6e 2c 20 6d 61 | 79 62 65 20 77 69 74 68 |soon, ma|ybe with|
|000006d0| 69 6e 67 20 74 68 65 20 | 6e 65 78 74 20 77 65 65 |ing the |next wee|
|000006e0| 6b 0a 20 20 20 20 20 20 | 20 20 20 20 20 6f 72 20 |k. | or |
|000006f0| 74 77 6f 2e 20 41 73 20 | 66 6f 72 20 41 6c 61 6e |two. As |for Alan|
|00000700| 2c 20 49 20 64 6f 6e 27 | 74 20 6b 6e 6f 77 2e 20 |, I don'|t know. |
|00000710| 55 6e 66 6f 72 74 75 6e | 61 74 65 6c 79 2c 20 6d |Unfortun|ately, m|
|00000720| 6f 64 65 72 61 74 69 6e | 67 0a 20 20 20 20 20 20 |oderatin|g. |
|00000730| 20 20 20 20 20 63 6f 6d | 70 2e 2a 2e 61 63 6f 72 | com|p.*.acor|
|00000740| 6e 20 69 73 6e 27 74 20 | 72 65 61 6c 6c 79 20 73 |n isn't |really s|
|00000750| 65 65 6e 20 61 73 20 70 | 61 72 74 20 61 73 20 74 |een as p|art as t|
|00000760| 68 65 20 27 6a 6f 62 27 | 20 74 68 61 74 20 77 65 |he 'job'| that we|
|00000770| 0a 20 20 20 20 20 20 20 | 20 20 20 20 64 6f 20 68 |. | do h|
|00000780| 65 72 65 2c 20 73 6f 20 | 69 74 20 68 61 73 20 74 |ere, so |it has t|
|00000790| 6f 20 62 65 20 61 20 73 | 70 61 72 65 20 74 69 6d |o be a s|pare tim|
|000007a0| 65 20 61 63 74 69 76 69 | 74 79 2e 20 0a 0a 43 68 |e activi|ty. ..Ch|
|000007b0| 72 69 73 2e 0a 0a 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |ris...__|________|
|000007c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000007d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000007e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000007f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 0a 43 68 72 |________|____.Chr|
|00000800| 69 73 20 4d 61 72 73 68 | 61 6c 6c 20 20 20 20 20 |is Marsh|all |
|00000810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 6d | | cm|
|00000830| 61 72 73 68 61 6c 6c 40 | 61 63 6f 72 6e 2e 63 6f |arshall@|acorn.co|
|00000840| 2e 75 6b 0a 0a 3e 46 72 | 6f 6d 20 70 63 31 32 33 |.uk..>Fr|om pc123|
|00000850| 40 70 68 78 2e 63 61 6d | 2e 61 63 2e 75 6b 20 54 |@phx.cam|.ac.uk T|
|00000860| 75 65 20 46 65 62 20 32 | 35 20 31 39 3a 32 39 3a |ue Feb 2|5 19:29:|
|00000870| 35 39 20 31 39 39 32 0a | 52 65 63 65 69 76 65 64 |59 1992.|Received|
|00000880| 3a 20 62 79 20 6f 61 6b | 2e 61 63 6f 72 6e 2e 63 |: by oak|.acorn.c|
|00000890| 6f 2e 75 6b 20 28 34 2e | 31 2f 41 69 31 2e 36 29 |o.uk (4.|1/Ai1.6)|
|000008a0| 0a 09 69 64 20 41 41 31 | 31 32 32 39 3b 20 54 75 |..id AA1|1229; Tu|
|000008b0| 65 2c 20 32 35 20 46 65 | 62 20 39 32 20 31 39 3a |e, 25 Fe|b 92 19:|
|000008c0| 32 39 3a 35 36 20 47 4d | 54 0a 52 65 63 65 69 76 |29:56 GM|T.Receiv|
|000008d0| 65 64 3a 20 62 79 20 61 | 63 6f 72 6e 2e 63 6f 2e |ed: by a|corn.co.|
|000008e0| 75 6b 20 28 34 2e 31 2f | 41 6d 33 32 29 0a 09 69 |uk (4.1/|Am32)..i|
|000008f0| 64 20 41 41 31 33 34 37 | 37 3b 20 54 75 65 2c 20 |d AA1347|7; Tue, |
|00000900| 32 35 20 46 65 62 20 39 | 32 20 31 39 3a 32 39 3a |25 Feb 9|2 19:29:|
|00000910| 30 32 20 47 4d 54 0a 52 | 65 63 65 69 76 65 64 3a |02 GMT.R|eceived:|
|00000920| 20 66 72 6f 6d 20 70 68 | 78 2e 63 61 6d 2e 61 63 | from ph|x.cam.ac|
|00000930| 2e 75 6b 20 62 79 20 65 | 72 6f 73 2e 75 6b 6e 65 |.uk by e|ros.ukne|
|00000940| 74 2e 61 63 2e 75 6b 20 | 76 69 61 20 4a 41 4e 45 |t.ac.uk |via JANE|
|00000950| 54 20 77 69 74 68 20 4e | 49 46 54 50 20 28 50 50 |T with N|IFTP (PP|
|00000960| 29 20 0a 20 20 20 20 20 | 20 20 20 20 20 69 64 20 |) . | id |
|00000970| 3c 32 35 39 37 35 2d 30 | 40 65 72 6f 73 2e 75 6b |<25975-0|@eros.uk|
|00000980| 6e 65 74 2e 61 63 2e 75 | 6b 3e 3b 20 54 75 65 2c |net.ac.u|k>; Tue,|
|00000990| 20 32 35 20 46 65 62 20 | 31 39 39 32 20 31 38 3a | 25 Feb |1992 18:|
|000009a0| 32 32 3a 35 39 20 2b 30 | 30 30 30 0a 44 61 74 65 |22:59 +0|000.Date|
|000009b0| 3a 20 54 75 65 2c 20 32 | 35 20 46 65 62 20 39 32 |: Tue, 2|5 Feb 92|
|000009c0| 20 31 38 3a 32 32 3a 30 | 38 20 47 4d 54 0a 3e 46 | 18:22:0|8 GMT.>F|
|000009d0| 72 6f 6d 3a 20 50 65 74 | 65 20 3c 70 63 31 32 33 |rom: Pet|e <pc123|
|000009e0| 40 70 68 78 2e 63 61 6d | 2e 61 63 2e 75 6b 3e 0a |@phx.cam|.ac.uk>.|
|000009f0| 54 6f 3a 20 73 75 62 6d | 69 74 40 61 63 6f 72 6e |To: subm|it@acorn|
|00000a00| 2e 63 6f 2e 75 6b 0a 53 | 75 62 6a 65 63 74 3a 20 |.co.uk.S|ubject: |
|00000a10| 43 6f 64 65 20 66 6f 72 | 20 70 72 65 2d 65 6d 70 |Code for| pre-emp|
|00000a20| 74 69 6e 67 20 61 20 6e | 6f 6e 2d 64 65 73 6b 74 |ting a n|on-deskt|
|00000a30| 6f 70 20 74 61 73 6b 0a | 4d 65 73 73 61 67 65 2d |op task.|Message-|
|00000a40| 49 64 3a 20 3c 41 35 34 | 44 36 42 35 35 46 44 45 |Id: <A54|D6B55FDE|
|00000a50| 39 30 30 34 30 40 55 4b | 2e 41 43 2e 43 41 4d 42 |90040@UK|.AC.CAMB|
|00000a60| 52 49 44 47 45 2e 50 48 | 4f 45 4e 49 58 3e 0a 0a |RIDGE.PH|OENIX>..|
|00000a70| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000a80| 2e 73 6f 75 72 63 65 73 | 2e 61 63 6f 72 6e 0a 0a |.sources|.acorn..|
|00000a90| 48 65 72 65 20 69 73 20 | 74 68 65 20 63 6f 64 65 |Here is |the code|
|00000aa0| 20 74 6f 20 64 65 6d 6f | 6e 73 74 72 61 74 65 20 | to demo|nstrate |
|00000ab0| 68 6f 77 20 79 6f 75 20 | 63 61 6e 20 70 72 65 2d |how you |can pre-|
|00000ac0| 65 6d 70 74 20 61 20 6e | 6f 6e 2d 64 65 73 6b 74 |empt a n|on-deskt|
|00000ad0| 6f 70 20 70 72 6f 67 72 | 61 6d 0a 77 69 74 68 6f |op progr|am.witho|
|00000ae0| 75 74 20 72 75 6e 6e 69 | 6e 67 20 69 74 20 69 6e |ut runni|ng it in|
|00000af0| 20 61 20 74 61 73 6b 77 | 69 6e 64 6f 77 20 6f 72 | a taskw|indow or|
|00000b00| 20 75 6e 64 65 72 20 46 | 72 6f 6e 74 45 6e 64 2c | under F|rontEnd,|
|00000b10| 20 61 73 20 49 20 70 72 | 6f 6d 69 73 65 64 20 6f | as I pr|omised o|
|00000b20| 6e 20 63 2d 73 2d 61 0a | 72 65 63 65 6e 74 6c 79 |n c-s-a.|recently|
|00000b30| 2e 20 20 54 68 65 20 63 | 6f 64 65 20 69 6d 70 6c |. The c|ode impl|
|00000b40| 65 6d 65 6e 74 73 20 61 | 20 6d 6f 64 75 6c 65 20 |ements a| module |
|00000b50| 77 68 69 63 68 20 61 63 | 74 73 20 61 20 62 69 74 |which ac|ts a bit|
|00000b60| 20 6c 69 6b 65 20 46 72 | 6f 6e 74 45 6e 64 20 62 | like Fr|ontEnd b|
|00000b70| 75 74 20 69 73 20 61 0a | 74 69 6e 73 79 20 62 69 |ut is a.|tinsy bi|
|00000b80| 74 20 6d 6f 72 65 20 65 | 66 66 69 63 69 65 6e 74 |t more e|fficient|
|00000b90| 20 69 6e 20 69 74 73 20 | 75 73 65 20 6f 66 20 52 | in its |use of R|
|00000ba0| 4d 41 3b 20 69 74 20 73 | 68 6f 75 6c 64 20 62 65 |MA; it s|hould be|
|00000bb0| 20 70 6f 73 73 69 62 6c | 65 20 74 6f 20 63 6f 6e | possibl|e to con|
|00000bc0| 76 65 72 74 20 69 74 0a | 66 6f 72 20 6d 75 6c 74 |vert it.|for mult|
|00000bd0| 69 74 61 73 6b 69 6e 67 | 20 72 61 79 74 72 61 63 |itasking| raytrac|
|00000be0| 65 72 73 20 6f 72 20 6f | 74 68 65 72 20 63 6f 64 |ers or o|ther cod|
|00000bf0| 65 20 79 6f 75 20 61 72 | 65 20 77 72 69 74 69 6e |e you ar|e writin|
|00000c00| 67 20 77 69 74 68 6f 75 | 74 20 74 6f 6f 20 6d 75 |g withou|t too mu|
|00000c10| 63 68 0a 64 69 66 66 69 | 63 75 6c 74 79 2e 0a 0a |ch.diffi|culty...|
|00000c20| 54 68 65 20 6d 6f 64 75 | 6c 65 20 77 72 69 74 65 |The modu|le write|
|00000c30| 73 20 61 6c 6c 20 6f 75 | 74 70 75 74 20 67 65 6e |s all ou|tput gen|
|00000c40| 65 72 61 74 65 64 20 62 | 79 20 74 68 65 20 70 72 |erated b|y the pr|
|00000c50| 6f 67 72 61 6d 20 69 6e | 74 6f 20 61 20 63 69 72 |ogram in|to a cir|
|00000c60| 63 75 6c 61 72 20 62 75 | 66 66 65 72 20 61 74 0a |cular bu|ffer at.|
|00000c70| 61 20 66 69 78 65 64 20 | 6f 66 66 73 65 74 20 69 |a fixed |offset i|
|00000c80| 6e 20 69 74 73 20 77 6f | 72 6b 73 70 61 63 65 20 |n its wo|rkspace |
|00000c90| 2d 20 61 20 64 65 73 6b | 74 6f 70 20 74 61 73 6b |- a desk|top task|
|00000ca0| 20 74 68 65 6e 20 75 73 | 65 73 20 74 68 65 20 4f | then us|es the O|
|00000cb0| 53 5f 4d 6f 64 75 6c 65 | 20 63 61 6c 6c 0a 74 6f |S_Module| call.to|
|00000cc0| 20 66 69 6e 64 20 6f 75 | 74 20 77 68 65 72 65 20 | find ou|t where |
|00000cd0| 74 68 65 20 77 6f 72 6b | 73 70 61 63 65 20 69 73 |the work|space is|
|00000ce0| 2c 20 61 6e 64 20 72 65 | 61 64 73 20 64 61 74 61 |, and re|ads data|
|00000cf0| 20 6f 75 74 2e 20 20 54 | 68 65 20 65 66 66 65 63 | out. T|he effec|
|00000d00| 74 20 69 73 20 74 68 61 | 74 0a 74 65 78 74 20 70 |t is tha|t.text p|
|00000d10| 72 6f 64 75 63 65 64 20 | 62 79 20 61 20 70 72 6f |roduced |by a pro|
|00000d20| 67 72 61 6d 20 69 73 20 | 6e 6f 74 20 73 74 6f 72 |gram is |not stor|
|00000d30| 65 64 20 69 6e 20 74 68 | 65 20 52 4d 41 2c 20 73 |ed in th|e RMA, s|
|00000d40| 6f 20 65 78 63 65 73 73 | 69 76 65 20 66 72 61 67 |o excess|ive frag|
|00000d50| 6d 65 6e 74 61 74 69 6f | 6e 0a 64 6f 65 73 20 6e |mentatio|n.does n|
|00000d60| 6f 74 20 6f 63 63 75 72 | 2e 20 20 54 68 69 73 20 |ot occur|. This |
|00000d70| 61 6c 73 6f 20 69 6d 70 | 6c 69 65 73 20 74 68 61 |also imp|lies tha|
|00000d80| 74 20 74 68 69 73 20 6d | 6f 64 75 6c 65 20 69 73 |t this m|odule is|
|00000d90| 20 6f 6e 6c 79 20 74 68 | 65 20 22 62 75 73 69 6e | only th|e "busin|
|00000da0| 65 73 73 20 65 6e 64 22 | 0a 6f 66 20 61 20 63 6f |ess end"|.of a co|
|00000db0| 6d 70 6c 65 74 65 20 46 | 72 6f 6e 74 45 6e 64 20 |mplete F|rontEnd |
|00000dc0| 72 65 70 6c 61 63 65 6d | 65 6e 74 2c 20 61 6e 64 |replacem|ent, and|
|00000dd0| 20 79 6f 75 20 68 61 76 | 65 20 74 6f 20 77 72 69 | you hav|e to wri|
|00000de0| 74 65 20 61 20 64 65 73 | 6b 74 6f 70 20 63 6c 69 |te a des|ktop cli|
|00000df0| 65 6e 74 0a 70 72 6f 67 | 72 61 6d 20 61 73 20 77 |ent.prog|ram as w|
|00000e00| 65 6c 6c 2c 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |ell, to |display |
|00000e10| 6f 75 74 70 75 74 20 70 | 72 6f 64 75 63 65 64 20 |output p|roduced |
|00000e20| 62 79 20 61 20 74 61 73 | 6b 20 69 6e 20 61 20 77 |by a tas|k in a w|
|00000e30| 69 6e 64 6f 77 2e 20 20 | 49 20 61 6d 20 6e 6f 74 |indow. |I am not|
|00000e40| 0a 70 6f 73 74 69 6e 67 | 20 74 68 65 20 63 6c 69 |.posting| the cli|
|00000e50| 65 6e 74 20 68 65 72 65 | 2c 20 62 65 63 61 75 73 |ent here|, becaus|
|00000e60| 65 20 74 68 69 73 20 73 | 6f 75 72 63 65 20 69 73 |e this s|ource is|
|00000e70| 20 72 65 61 6c 6c 79 20 | 66 6f 72 20 69 6c 6c 75 | really |for illu|
|00000e80| 73 74 72 61 74 69 6f 6e | 20 6f 6e 6c 79 2e 0a 0a |stration| only...|
|00000e90| 54 68 65 20 6d 6f 64 75 | 6c 65 20 61 6c 73 6f 20 |The modu|le also |
|00000ea0| 61 6c 6c 6f 77 73 20 74 | 68 65 20 74 61 73 6b 20 |allows t|he task |
|00000eb0| 69 74 20 69 73 20 72 75 | 6e 6e 69 6e 67 20 74 6f |it is ru|nning to|
|00000ec0| 20 62 65 20 73 74 6f 70 | 70 65 64 20 61 6e 64 20 | be stop|ped and |
|00000ed0| 72 65 73 74 61 72 74 65 | 64 20 75 6e 64 65 72 0a |restarte|d under.|
|00000ee0| 63 6f 6e 74 72 6f 6c 20 | 6f 66 20 74 68 65 20 63 |control |of the c|
|00000ef0| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 70 72 6f 67 72 |ontrolli|ng progr|
|00000f00| 61 6d 2e 20 20 54 68 69 | 73 20 69 73 20 61 63 63 |am. Thi|s is acc|
|00000f10| 6f 6d 70 6c 69 73 68 65 | 64 20 62 79 20 77 72 69 |omplishe|d by wri|
|00000f20| 74 69 6e 67 20 76 61 72 | 69 6f 75 73 0a 76 61 6c |ting var|ious.val|
|00000f30| 75 65 73 20 69 6e 74 6f | 20 61 6e 6f 74 68 65 72 |ues into| another|
|00000f40| 20 77 6f 72 64 20 61 74 | 20 61 20 66 69 78 65 64 | word at| a fixed|
|00000f50| 20 6f 66 66 73 65 74 20 | 69 6e 20 74 68 65 20 6d | offset |in the m|
|00000f60| 6f 64 75 6c 65 27 73 20 | 77 6f 72 6b 73 70 61 63 |odule's |workspac|
|00000f70| 65 2e 0a 53 69 6d 69 6c | 61 72 6c 79 20 74 68 65 |e..Simil|arly the|
|00000f80| 20 6d 6f 64 75 6c 65 20 | 6d 61 79 20 62 65 20 61 | module |may be a|
|00000f90| 73 6b 65 64 20 74 6f 20 | 6b 69 6c 6c 20 74 68 65 |sked to |kill the|
|00000fa0| 20 70 72 6f 67 72 61 6d | 20 69 74 20 69 73 20 70 | program| it is p|
|00000fb0| 72 65 2d 65 6d 70 74 69 | 6e 67 20 28 6e 65 76 65 |re-empti|ng (neve|
|00000fc0| 72 0a 73 63 68 65 64 75 | 6c 69 6e 67 20 69 74 20 |r.schedu|ling it |
|00000fd0| 61 67 61 69 6e 2c 20 61 | 6e 64 20 63 6c 6f 73 69 |again, a|nd closi|
|00000fe0| 6e 67 20 61 6c 6c 20 69 | 74 73 20 66 69 6c 65 73 |ng all i|ts files|
|00000ff0| 29 20 6f 72 20 74 65 72 | 6d 69 6e 61 74 65 20 69 |) or ter|minate i|
|00001000| 74 20 28 63 61 6c 6c 20 | 69 74 73 20 65 78 69 74 |t (call |its exit|
|00001010| 0a 68 61 6e 64 6c 65 72 | 29 2e 0a 0a 41 73 20 49 |.handler|)...As I|
|00001020| 20 77 72 6f 74 65 20 45 | 78 70 72 65 73 73 20 41 | wrote E|xpress A|
|00001030| 73 73 65 6d 62 6c 65 72 | 2c 20 74 68 65 20 6d 6f |ssembler|, the mo|
|00001040| 64 75 6c 65 20 69 73 20 | 77 72 69 74 74 65 6e 20 |dule is |written |
|00001050| 69 6e 20 45 78 70 72 65 | 73 73 20 66 6f 72 6d 61 |in Expre|ss forma|
|00001060| 74 2e 20 20 59 6f 75 0a | 73 68 6f 75 6c 64 6e 27 |t. You.|shouldn'|
|00001070| 74 20 68 61 76 65 20 74 | 6f 6f 20 6d 75 63 68 20 |t have t|oo much |
|00001080| 74 72 6f 75 62 6c 65 20 | 75 6e 64 65 72 73 74 61 |trouble |understa|
|00001090| 6e 64 69 6e 67 20 69 74 | 2c 20 61 73 20 69 74 20 |nding it|, as it |
|000010a0| 64 6f 65 73 20 6e 6f 74 | 20 75 73 65 20 61 6e 79 |does not| use any|
|000010b0| 20 66 61 6e 63 79 0a 66 | 65 61 74 75 72 65 73 2e | fancy.f|eatures.|
|000010c0| 0a 0a 49 74 20 69 73 20 | 77 65 6c 6c 20 6b 6e 6f |..It is |well kno|
|000010d0| 77 6e 20 74 68 61 74 20 | 6f 6e 6c 79 20 51 75 69 |wn that |only Qui|
|000010e0| 63 68 65 20 45 61 74 65 | 72 73 20 63 6f 6d 6d 65 |che Eate|rs comme|
|000010f0| 6e 74 20 74 68 65 69 72 | 20 70 72 6f 67 72 61 6d |nt their| program|
|00001100| 73 20 77 65 6c 6c 2e 20 | 20 49 20 68 61 76 65 0a |s well. | I have.|
|00001110| 61 64 64 65 64 20 61 20 | 66 65 77 2c 20 62 75 74 |added a |few, but|
|00001120| 2e 2e 2e 0a 0a 2e 2e 2e | 69 66 20 79 6f 75 20 66 |........|if you f|
|00001130| 69 6e 64 20 79 6f 75 20 | 6e 65 65 64 20 68 65 6c |ind you |need hel|
|00001140| 70 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 69 74 2c 20 |p follow|ing it, |
|00001150| 73 65 6e 64 20 6d 65 20 | 6d 61 69 6c 20 61 6e 64 |send me |mail and|
|00001160| 20 49 20 77 69 6c 6c 20 | 64 6f 20 6d 79 20 62 65 | I will |do my be|
|00001170| 73 74 0a 74 6f 20 68 65 | 6c 70 2e 20 20 4f 72 20 |st.to he|lp. Or |
|00001180| 66 6c 61 6d 65 20 61 62 | 6f 75 74 20 69 74 20 6f |flame ab|out it o|
|00001190| 6e 20 63 2d 73 2d 61 20 | 69 6e 73 74 65 61 64 20 |n c-s-a |instead |
|000011a0| 20 3a 2d 29 20 20 2e 0a | 0a 0a 20 20 20 20 20 20 | :-) ..|.. |
|000011b0| 20 20 53 45 54 54 59 50 | 45 20 22 4d 4f 44 55 4c | SETTYP|E "MODUL|
|000011c0| 45 22 0a 20 20 20 20 20 | 20 20 20 4f 42 4a 45 43 |E". | OBJEC|
|000011d0| 54 20 22 21 59 41 4d 55 | 2e 49 6e 69 74 69 61 74 |T "!YAMU|.Initiat|
|000011e0| 6f 72 22 0a 20 20 20 20 | 20 20 20 20 4f 52 47 20 |or". | ORG |
|000011f0| 30 0a 20 20 20 20 20 20 | 20 20 41 53 53 55 4d 45 |0. | ASSUME|
|00001200| 20 50 43 2c 30 0a 20 20 | 20 20 20 20 20 20 41 53 | PC,0. | AS|
|00001210| 53 55 4d 45 20 52 31 32 | 2c 26 31 30 30 30 30 30 |SUME R12|,&100000|
|00001220| 30 30 0a 0a 20 20 20 20 | 20 20 20 20 53 45 54 20 |00.. | SET |
|00001230| 56 53 54 52 2c 22 31 2e | 30 30 22 0a 0a 20 20 20 |VSTR,"1.|00".. |
|00001240| 20 20 20 20 20 44 44 20 | 4c 41 4e 47 55 41 47 45 | DD |LANGUAGE|
|00001250| 2c 30 2c 30 2c 53 45 52 | 56 49 43 45 2c 54 49 54 |,0,0,SER|VICE,TIT|
|00001260| 4c 45 2c 48 45 4c 50 2c | 30 2c 30 2c 30 2c 30 2c |LE,HELP,|0,0,0,0,|
|00001270| 30 0a 0a 54 49 54 4c 45 | 20 20 20 44 42 20 22 49 |0..TITLE| DB "I|
|00001280| 6e 69 74 69 61 74 6f 72 | 22 2c 30 0a 20 20 20 20 |nitiator|",0. |
|00001290| 20 20 20 20 41 4c 49 47 | 4e 0a 0a 48 45 4c 50 20 | ALIG|N..HELP |
|000012a0| 20 20 20 44 42 20 22 49 | 6e 69 74 69 61 74 6f 72 | DB "I|nitiator|
|000012b0| 22 2c 39 2c 22 60 56 53 | 54 52 60 20 28 22 2c 4f |",9,"`VS|TR` (",O|
|000012c0| 53 56 41 52 20 22 53 79 | 73 24 44 61 74 65 22 20 |SVAR "Sy|s$Date" |
|000012d0| 52 49 47 48 54 20 36 2c | 22 20 22 2c 4f 53 56 41 |RIGHT 6,|" ",OSVA|
|000012e0| 52 20 22 53 79 73 24 59 | 65 61 72 22 2c 22 29 22 |R "Sys$Y|ear",")"|
|000012f0| 2c 30 0a 20 20 20 20 20 | 20 20 20 41 4c 49 47 4e |,0. | ALIGN|
|00001300| 0a 0a 54 41 53 4b 44 45 | 53 43 0a 20 20 20 20 20 |..TASKDE|SC. |
|00001310| 20 20 20 44 42 20 22 49 | 6e 69 74 22 2c 30 0a 20 | DB "I|nit",0. |
|00001320| 20 20 20 20 20 20 20 41 | 4c 49 47 4e 0a 0a 4c 41 | A|LIGN..LA|
|00001330| 4e 47 55 41 47 45 0a 20 | 20 20 20 20 20 20 20 4c |NGUAGE. | L|
|00001340| 4f 43 41 4c 53 0a 20 20 | 20 20 20 20 20 20 4d 4f |OCALS. | MO|
|00001350| 56 20 52 31 31 2c 52 30 | 0a 0a 20 20 20 20 20 20 |V R11,R0|.. |
|00001360| 20 20 3b 20 43 6c 61 69 | 6d 20 6d 65 6d 6f 72 79 | ; Clai|m memory|
|00001370| 0a 0a 20 20 20 20 20 20 | 20 20 4d 4f 56 20 52 30 |.. | MOV R0|
|00001380| 2c 23 36 0a 20 20 20 20 | 20 20 20 20 4c 49 54 20 |,#6. | LIT |
|00001390| 52 33 2c 57 45 4e 44 2d | 57 53 54 41 52 54 0a 20 |R3,WEND-|WSTART. |
|000013a0| 20 20 20 20 20 20 20 53 | 57 49 20 22 4f 53 5f 4d | S|WI "OS_M|
|000013b0| 6f 64 75 6c 65 22 0a 20 | 20 20 20 20 20 20 20 53 |odule". | S|
|000013c0| 54 52 20 52 32 2c 5b 52 | 31 32 5d 0a 20 20 20 20 |TR R2,[R|12]. |
|000013d0| 20 20 20 20 53 54 52 20 | 52 31 32 2c 5b 52 32 5d | STR |R12,[R2]|
|000013e0| 0a 20 20 20 20 20 20 20 | 20 4d 4f 56 20 52 31 32 |. | MOV R12|
|000013f0| 2c 52 32 0a 0a 20 20 20 | 20 20 20 20 20 3b 20 49 |,R2.. | ; I|
|00001400| 6e 69 74 69 61 6c 69 73 | 65 20 76 61 72 69 61 62 |nitialis|e variab|
|00001410| 6c 65 73 0a 0a 20 20 20 | 20 20 20 20 20 4d 4f 56 |les.. | MOV|
|00001420| 20 52 30 2c 23 30 0a 20 | 20 20 20 20 20 20 20 53 | R0,#0. | S|
|00001430| 54 20 52 30 2c 4d 45 4d | 4f 52 59 4d 41 50 56 45 |T R0,MEM|ORYMAPVE|
|00001440| 54 4f 45 44 0a 20 20 20 | 20 20 20 20 20 53 54 20 |TOED. | ST |
|00001450| 52 30 2c 4f 55 54 42 55 | 46 46 45 52 52 45 41 44 |R0,OUTBU|FFERREAD|
|00001460| 0a 20 20 20 20 20 20 20 | 20 53 54 20 52 30 2c 4f |. | ST R0,O|
|00001470| 55 54 42 55 46 46 45 52 | 57 52 49 54 45 0a 20 20 |UTBUFFER|WRITE. |
|00001480| 20 20 20 20 20 20 53 54 | 20 52 30 2c 4d 45 53 53 | ST| R0,MESS|
|00001490| 41 47 45 53 0a 20 20 20 | 20 20 20 20 20 53 54 20 |AGES. | ST |
|000014a0| 52 30 2c 53 55 53 50 45 | 4e 44 45 44 0a 20 20 20 |R0,SUSPE|NDED. |
|000014b0| 20 20 20 20 20 53 54 20 | 52 30 2c 54 45 52 4d 49 | ST |R0,TERMI|
|000014c0| 4e 41 54 49 4e 47 0a 20 | 20 20 20 20 20 20 20 53 |NATING. | S|
|000014d0| 54 20 52 30 2c 48 41 4e | 44 4c 45 53 55 53 45 44 |T R0,HAN|DLESUSED|
|000014e0| 0a 0a 20 20 20 20 20 20 | 20 20 3b 20 52 65 67 69 |.. | ; Regi|
|000014f0| 73 74 65 72 20 61 73 20 | 57 69 6d 70 20 74 61 73 |ster as |Wimp tas|
|00001500| 6b 0a 0a 20 20 20 20 20 | 20 20 20 4d 4f 56 20 52 |k.. | MOV R|
|00001510| 30 2c 23 32 30 30 0a 20 | 20 20 20 20 20 20 20 4c |0,#200. | L|
|00001520| 49 54 20 52 31 2c 26 34 | 42 35 33 34 31 35 34 0a |IT R1,&4|B534154.|
|00001530| 20 20 20 20 20 20 20 20 | 41 44 52 20 52 32 2c 54 | |ADR R2,T|
|00001540| 41 53 4b 44 45 53 43 0a | 20 20 20 20 20 20 20 20 |ASKDESC.| |
|00001550| 53 57 49 20 22 57 69 6d | 70 5f 49 6e 69 74 69 61 |SWI "Wim|p_Initia|
|00001560| 6c 69 73 65 22 0a 20 20 | 20 20 20 20 20 20 53 54 |lise". | ST|
|00001570| 20 52 31 2c 54 41 53 4b | 48 41 4e 44 4c 45 0a 0a | R1,TASK|HANDLE..|
|00001580| 20 20 20 20 20 20 20 20 | 3b 20 43 61 6c 63 75 6c | |; Calcul|
|00001590| 61 74 65 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 |ate appr|opriate |
|000015a0| 28 69 6e 69 74 69 61 6c | 29 20 73 6c 6f 74 20 73 |(initial|) slot s|
|000015b0| 69 7a 65 2e 20 20 54 68 | 69 73 20 69 73 20 6e 6f |ize. Th|is is no|
|000015c0| 74 20 63 61 6c 63 75 6c | 61 74 65 64 0a 20 20 20 |t calcul|ated. |
|000015d0| 20 20 20 20 20 3b 20 69 | 6e 20 61 6e 79 20 73 70 | ; i|n any sp|
|000015e0| 65 63 69 61 6c 20 77 61 | 79 2c 20 69 74 20 6a 75 |ecial wa|y, it ju|
|000015f0| 73 74 20 74 72 69 65 73 | 20 74 6f 20 61 6c 6c 6f |st tries| to allo|
|00001600| 63 61 74 65 20 61 20 72 | 65 61 73 6f 6e 61 62 6c |cate a r|easonabl|
|00001610| 65 20 61 6d 6f 75 6e 74 | 0a 20 20 20 20 20 20 20 |e amount|. |
|00001620| 20 3b 20 6f 66 20 73 70 | 61 63 65 2e 20 20 54 68 | ; of sp|ace. Th|
|00001630| 65 20 6e 65 77 65 72 20 | 61 70 70 6c 69 63 61 74 |e newer |applicat|
|00001640| 69 6f 6e 73 20 61 73 6b | 20 74 68 65 20 57 69 6d |ions ask| the Wim|
|00001650| 70 20 66 6f 72 20 6d 6f | 72 65 20 73 70 61 63 65 |p for mo|re space|
|00001660| 20 69 66 0a 20 20 20 20 | 20 20 20 20 3b 20 74 68 | if. | ; th|
|00001670| 65 79 20 72 75 6e 20 6f | 75 74 2e 0a 0a 20 20 20 |ey run o|ut... |
|00001680| 20 20 20 20 20 4d 56 4e | 20 52 30 2c 23 30 0a 20 | MVN| R0,#0. |
|00001690| 20 20 20 20 20 20 20 4d | 56 4e 20 52 31 2c 23 30 | M|VN R1,#0|
|000016a0| 0a 20 20 20 20 20 20 20 | 20 53 57 49 20 22 57 69 |. | SWI "Wi|
|000016b0| 6d 70 5f 53 6c 6f 74 53 | 69 7a 65 22 0a 20 20 20 |mp_SlotS|ize". |
|000016c0| 20 20 20 20 20 41 44 44 | 20 52 30 2c 52 30 2c 52 | ADD| R0,R0,R|
|000016d0| 31 0a 20 20 20 20 20 20 | 20 20 41 44 44 20 52 30 |1. | ADD R0|
|000016e0| 2c 52 30 2c 52 32 0a 20 | 20 20 20 20 20 20 20 43 |,R0,R2. | C|
|000016f0| 4d 50 20 52 30 2c 23 35 | 31 32 2a 31 30 32 34 0a |MP R0,#5|12*1024.|
|00001700| 20 20 20 20 20 20 20 20 | 4d 4f 56 47 45 20 52 30 | |MOVGE R0|
|00001710| 2c 23 35 31 32 2a 31 30 | 32 34 0a 20 20 20 20 20 |,#512*10|24. |
|00001720| 20 20 20 53 55 42 4c 54 | 20 52 30 2c 52 30 2c 23 | SUBLT| R0,R0,#|
|00001730| 36 34 2a 31 30 32 34 0a | 20 20 20 20 20 20 20 20 |64*1024.| |
|00001740| 43 4d 50 20 52 30 2c 23 | 30 0a 20 20 20 20 20 20 |CMP R0,#|0. |
|00001750| 20 20 4d 4f 56 4c 45 20 | 52 30 2c 23 31 36 2a 31 | MOVLE |R0,#16*1|
|00001760| 30 32 34 0a 20 20 20 20 | 20 20 20 20 4d 56 4e 20 |024. | MVN |
|00001770| 52 31 2c 23 30 0a 20 20 | 20 20 20 20 20 20 53 57 |R1,#0. | SW|
|00001780| 49 20 22 57 69 6d 70 5f | 53 6c 6f 74 53 69 7a 65 |I "Wimp_|SlotSize|
|00001790| 22 0a 0a 20 20 20 20 20 | 20 20 20 3b 20 49 6e 69 |".. | ; Ini|
|000017a0| 74 69 61 6c 69 73 65 20 | 65 6e 76 69 72 6f 6e 6d |tialise |environm|
|000017b0| 65 6e 74 2c 20 73 6f 20 | 74 68 61 74 20 66 75 6e |ent, so |that fun|
|000017c0| 6e 79 20 74 68 69 6e 67 | 73 20 64 6f 6e 27 74 20 |ny thing|s don't |
|000017d0| 68 61 70 70 65 6e 20 77 | 68 65 6e 20 74 68 65 0a |happen w|hen the.|
|000017e0| 20 20 20 20 20 20 20 20 | 3b 20 62 61 63 6b 67 72 | |; backgr|
|000017f0| 6f 75 6e 64 20 74 61 73 | 6b 20 63 61 6c 6c 73 20 |ound tas|k calls |
|00001800| 74 68 65 20 65 78 69 74 | 20 68 61 6e 64 6c 65 72 |the exit| handler|
|00001810| 2c 20 65 74 63 2e 20 20 | 49 6e 20 66 61 63 74 20 |, etc. |In fact |
|00001820| 74 68 65 20 65 78 69 74 | 0a 20 20 20 20 20 20 20 |the exit|. |
|00001830| 20 3b 20 68 61 6e 64 6c | 65 72 20 68 61 73 20 74 | ; handl|er has t|
|00001840| 6f 20 63 6f 6d 65 20 62 | 61 63 6b 20 69 6e 74 6f |o come b|ack into|
|00001850| 20 74 68 69 73 20 63 6f | 64 65 20 69 6e 20 6f 72 | this co|de in or|
|00001860| 64 65 72 20 66 6f 72 20 | 75 73 20 74 6f 20 74 69 |der for |us to ti|
|00001870| 64 79 20 75 70 2e 0a 0a | 20 20 20 20 20 20 20 20 |dy up...| |
|00001880| 4d 4f 56 20 52 30 2c 23 | 36 20 3b 20 45 72 72 6f |MOV R0,#|6 ; Erro|
|00001890| 72 20 68 61 6e 64 6c 65 | 72 0a 20 20 20 20 20 20 |r handle|r. |
|000018a0| 20 20 41 44 52 20 52 31 | 2c 45 52 52 4f 52 48 41 | ADR R1|,ERRORHA|
|000018b0| 4e 44 4c 45 52 0a 20 20 | 20 20 20 20 20 20 4d 4f |NDLER. | MO|
|000018c0| 56 20 52 32 2c 52 31 32 | 0a 20 20 20 20 20 20 20 |V R2,R12|. |
|000018d0| 20 41 44 52 20 52 33 2c | 45 52 52 4f 52 42 55 46 | ADR R3,|ERRORBUF|
|000018e0| 46 45 52 0a 20 20 20 20 | 20 20 20 20 53 57 49 20 |FER. | SWI |
|000018f0| 22 4f 53 5f 43 68 61 6e | 67 65 45 6e 76 69 72 6f |"OS_Chan|geEnviro|
|00001900| 6e 6d 65 6e 74 22 0a 20 | 20 20 20 20 20 20 20 41 |nment". | A|
|00001910| 44 52 20 52 30 2c 4f 4c | 44 45 52 52 4f 52 48 41 |DR R0,OL|DERRORHA|
|00001920| 4e 44 4c 45 52 0a 20 20 | 20 20 20 20 20 20 53 54 |NDLER. | ST|
|00001930| 4d 49 41 20 52 30 2c 7b | 52 31 2d 52 33 7d 0a 0a |MIA R0,{|R1-R3}..|
|00001940| 20 20 20 20 20 20 20 20 | 4d 4f 56 20 52 30 2c 23 | |MOV R0,#|
|00001950| 31 31 20 3b 20 45 78 69 | 74 20 68 61 6e 64 6c 65 |11 ; Exi|t handle|
|00001960| 72 0a 20 20 20 20 20 20 | 20 20 41 44 52 20 52 31 |r. | ADR R1|
|00001970| 2c 45 58 49 54 48 41 4e | 44 4c 45 52 0a 20 20 20 |,EXITHAN|DLER. |
|00001980| 20 20 20 20 20 4d 4f 56 | 20 52 32 2c 52 31 32 0a | MOV| R2,R12.|
|00001990| 20 20 20 20 20 20 20 20 | 4d 4f 56 20 52 33 2c 23 | |MOV R3,#|
|000019a0| 30 0a 20 20 20 20 20 20 | 20 20 53 57 49 20 22 4f |0. | SWI "O|
|000019b0| 53 5f 43 68 61 6e 67 65 | 45 6e 76 69 72 6f 6e 6d |S_Change|Environm|
|000019c0| 65 6e 74 22 0a 20 20 20 | 20 20 20 20 20 41 44 52 |ent". | ADR|
|000019d0| 20 52 30 2c 4f 4c 44 45 | 58 49 54 48 41 4e 44 4c | R0,OLDE|XITHANDL|
|000019e0| 45 52 0a 20 20 20 20 20 | 20 20 20 53 54 4d 49 41 |ER. | STMIA|
|000019f0| 20 52 30 2c 7b 52 31 2d | 52 33 7d 0a 0a 20 20 20 | R0,{R1-|R3}.. |
|00001a00| 20 20 20 20 20 3b 20 53 | 65 74 20 69 6e 74 65 72 | ; S|et inter|
|00001a10| 72 75 70 74 69 6f 6e 20 | 6f 66 20 62 61 63 6b 67 |ruption |of backg|
|00001a20| 72 6f 75 6e 64 20 74 61 | 73 6b 0a 0a 20 20 20 20 |round ta|sk.. |
|00001a30| 20 20 20 20 42 4c 20 53 | 45 54 43 41 4c 4c 41 46 | BL S|ETCALLAF|
|00001a40| 54 45 52 0a 20 20 20 20 | 20 20 20 20 42 4c 20 43 |TER. | BL C|
|00001a50| 4c 41 49 4d 56 45 43 53 | 0a 0a 20 20 20 20 20 20 |LAIMVECS|.. |
|00001a60| 20 20 3b 20 41 6e 64 20 | 73 74 61 72 74 20 74 68 | ; And |start th|
|00001a70| 65 20 74 61 73 6b 20 6f | 66 66 0a 0a 20 20 20 20 |e task o|ff.. |
|00001a80| 20 20 20 20 4d 4f 56 20 | 52 30 2c 52 31 31 0a 20 | MOV |R0,R11. |
|00001a90| 20 20 20 20 20 20 20 53 | 57 49 20 22 4f 53 5f 57 | S|WI "OS_W|
|00001aa0| 72 69 74 65 30 22 20 20 | 20 20 20 20 20 20 20 3b |rite0" | ;|
|00001ab0| 20 54 68 69 73 20 6a 75 | 73 74 20 77 72 69 74 65 | This ju|st write|
|00001ac0| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00001ad0| 65 20 63 6f 6d 6d 61 6e | 64 0a 20 20 20 20 20 20 |e comman|d. |
|00001ae0| 20 20 53 57 49 20 22 4f | 53 5f 4e 65 77 4c 69 6e | SWI "O|S_NewLin|
|00001af0| 65 22 20 20 20 20 20 20 | 20 20 3b 20 72 75 6e 20 |e" | ; run |
|00001b00| 69 6e 74 6f 20 74 68 65 | 20 6f 75 74 70 75 74 20 |into the| output |
|00001b10| 62 75 66 66 65 72 2e 0a | 20 20 20 20 20 20 20 20 |buffer..| |
|00001b20| 4d 4f 56 20 52 30 2c 52 | 31 31 0a 20 20 20 20 20 |MOV R0,R|11. |
|00001b30| 20 20 20 53 57 49 20 22 | 4f 53 5f 43 4c 49 22 20 | SWI "|OS_CLI" |
|00001b40| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 45 78 65 | | ; Exe|
|00001b50| 63 75 74 65 20 74 68 65 | 20 2a 20 63 6f 6d 6d 61 |cute the| * comma|
|00001b60| 6e 64 20 74 68 61 74 20 | 72 75 6e 73 20 74 68 65 |nd that |runs the|
|00001b70| 20 74 61 73 6b 2e 0a 0a | 20 20 20 20 20 20 20 20 | task...| |
|00001b80| 3b 20 54 68 69 73 20 6d | 61 79 20 72 65 74 75 72 |; This m|ay retur|
|00001b90| 6e 2c 20 69 66 20 6e 6f | 20 61 70 70 6c 69 63 61 |n, if no| applica|
|00001ba0| 74 69 6f 6e 20 69 73 20 | 73 74 61 72 74 65 64 2e |tion is |started.|
|00001bb0| 20 20 49 6e 20 74 68 69 | 73 20 63 61 73 65 2c 20 | In thi|s case, |
|00001bc0| 74 68 65 72 65 0a 20 20 | 20 20 20 20 20 20 3b 20 |there. | ; |
|00001bd0| 69 73 20 61 6e 20 6f 75 | 74 73 74 61 6e 64 69 6e |is an ou|tstandin|
|00001be0| 67 20 74 69 63 6b 65 72 | 20 65 76 65 6e 74 20 74 |g ticker| event t|
|00001bf0| 6f 20 63 61 6e 63 65 6c | 2c 20 62 75 74 20 61 70 |o cancel|, but ap|
|00001c00| 61 72 74 20 66 72 6f 6d | 20 74 68 61 74 20 77 65 |art from| that we|
|00001c10| 0a 20 20 20 20 20 20 20 | 20 3b 20 6a 75 73 74 20 |. | ; just |
|00001c20| 65 78 69 74 2e 0a 0a 20 | 20 20 20 20 20 20 20 41 |exit... | A|
|00001c30| 44 52 20 52 31 33 2c 55 | 53 52 53 54 41 43 4b 0a |DR R13,U|SRSTACK.|
|00001c40| 20 20 20 20 20 20 20 20 | 42 4c 20 43 41 4e 43 45 | |BL CANCE|
|00001c50| 4c 54 49 43 4b 45 52 20 | 20 20 20 20 20 20 20 20 |LTICKER | |
|00001c60| 3b 20 43 61 6e 63 65 6c | 20 74 68 65 20 64 65 73 |; Cancel| the des|
|00001c70| 63 68 65 64 75 6c 69 6e | 67 20 74 69 6d 65 2d 6f |chedulin|g time-o|
|00001c80| 75 74 2e 0a 20 20 20 20 | 20 20 20 20 42 4c 20 52 |ut.. | BL R|
|00001c90| 45 4c 45 41 53 45 56 45 | 43 53 20 20 20 20 20 20 |ELEASEVE|CS |
|00001ca0| 20 20 20 20 3b 20 52 65 | 6c 65 61 73 65 20 76 65 | ; Re|lease ve|
|00001cb0| 63 74 6f 72 73 20 77 65 | 20 68 61 76 65 20 63 6c |ctors we| have cl|
|00001cc0| 61 69 6d 65 64 2e 0a 20 | 20 20 20 20 20 20 20 42 |aimed.. | B|
|00001cd0| 20 4b 49 4c 4c 4d 4f 44 | 55 4c 45 0a 0a 4d 41 49 | KILLMOD|ULE..MAI|
|00001ce0| 4e 4c 4f 4f 50 0a 20 20 | 20 20 20 20 20 20 42 4c |NLOOP. | BL|
|00001cf0| 20 52 45 4c 45 41 53 45 | 56 45 43 53 20 20 20 20 | RELEASE|VECS |
|00001d00| 20 20 20 20 20 20 3b 20 | 4d 75 73 74 20 72 65 6c | ; |Must rel|
|00001d10| 65 61 73 65 20 61 6c 6c | 20 76 65 63 74 6f 72 73 |ease all| vectors|
|00001d20| 20 62 65 66 6f 72 65 20 | 70 6f 6c 6c 69 6e 67 2e | before |polling.|
|00001d30| 0a 41 0a 20 20 20 20 20 | 20 20 20 4d 4f 56 20 52 |.A. | MOV R|
|00001d40| 30 2c 23 30 0a 20 20 20 | 20 20 20 20 20 41 44 52 |0,#0. | ADR|
|00001d50| 20 52 31 2c 50 4f 4c 4c | 42 4c 4f 43 4b 0a 20 20 | R1,POLL|BLOCK. |
|00001d60| 20 20 20 20 20 20 53 57 | 49 20 22 57 69 6d 70 5f | SW|I "Wimp_|
|00001d70| 50 6f 6c 6c 22 0a 20 20 | 20 20 20 20 20 20 54 45 |Poll". | TE|
|00001d80| 51 20 52 30 2c 23 30 0a | 20 20 20 20 20 20 20 20 |Q R0,#0.| |
|00001d90| 42 4c 4e 45 20 4e 4f 4e | 49 44 4c 45 50 4f 4c 4c |BLNE NON|IDLEPOLL|
|00001da0| 0a 20 20 20 20 20 20 20 | 20 41 44 52 20 52 31 33 |. | ADR R13|
|00001db0| 2c 55 53 52 53 54 41 43 | 4b 0a 20 20 20 20 20 20 |,USRSTAC|K. |
|00001dc0| 20 20 42 4c 20 52 45 43 | 45 49 56 45 4d 45 53 53 | BL REC|EIVEMESS|
|00001dd0| 41 47 45 53 0a 20 20 20 | 20 20 20 20 20 42 4e 45 |AGES. | BNE|
|00001de0| 20 41 0a 0a 20 20 20 20 | 20 20 20 20 3b 20 53 65 | A.. | ; Se|
|00001df0| 65 20 77 68 65 74 68 65 | 72 20 74 68 65 20 6f 75 |e whethe|r the ou|
|00001e00| 74 70 75 74 20 62 75 66 | 66 65 72 20 69 73 20 65 |tput buf|fer is e|
|00001e10| 6d 70 74 79 20 2d 20 69 | 66 20 6e 6f 74 20 77 65 |mpty - i|f not we|
|00001e20| 20 77 61 69 74 20 75 6e | 74 69 6c 20 69 74 0a 20 | wait un|til it. |
|00001e30| 20 20 20 20 20 20 20 3b | 20 68 61 73 20 62 65 65 | ;| has bee|
|00001e40| 6e 20 65 6d 70 74 69 65 | 64 20 62 65 66 6f 72 65 |n emptie|d before|
|00001e50| 20 72 75 6e 6e 69 6e 67 | 20 74 68 65 20 74 61 73 | running| the tas|
|00001e60| 6b 20 61 67 61 69 6e 2e | 0a 0a 20 20 20 20 20 20 |k again.|.. |
|00001e70| 20 20 4c 44 20 52 30 2c | 4f 55 54 42 55 46 46 45 | LD R0,|OUTBUFFE|
|00001e80| 52 52 45 41 44 0a 20 20 | 20 20 20 20 20 20 4c 44 |RREAD. | LD|
|00001e90| 20 52 31 2c 4f 55 54 42 | 55 46 46 45 52 57 52 49 | R1,OUTB|UFFERWRI|
|00001ea0| 54 45 0a 20 20 20 20 20 | 20 20 20 54 45 51 20 52 |TE. | TEQ R|
|00001eb0| 30 2c 52 31 0a 20 20 20 | 20 20 20 20 20 42 4e 45 |0,R1. | BNE|
|00001ec0| 20 41 0a 0a 20 20 20 20 | 20 20 20 20 3b 20 49 66 | A.. | ; If|
|00001ed0| 20 74 68 65 20 74 61 73 | 6b 20 68 61 73 20 62 65 | the tas|k has be|
|00001ee0| 65 6e 20 73 74 6f 70 70 | 65 64 20 62 79 20 74 68 |en stopp|ed by th|
|00001ef0| 65 20 63 6f 6e 74 72 6f | 6c 6c 69 6e 67 20 74 61 |e contro|lling ta|
|00001f00| 73 6b 2c 20 64 6f 6e 27 | 74 0a 20 20 20 20 20 20 |sk, don'|t. |
|00001f10| 20 20 3b 20 72 65 73 63 | 68 65 64 75 6c 65 20 69 | ; resc|hedule i|
|00001f20| 74 2e 0a 0a 20 20 20 20 | 20 20 20 20 4c 44 20 52 |t... | LD R|
|00001f30| 30 2c 53 55 53 50 45 4e | 44 45 44 0a 20 20 20 20 |0,SUSPEN|DED. |
|00001f40| 20 20 20 20 54 45 51 20 | 52 30 2c 23 30 0a 20 20 | TEQ |R0,#0. |
|00001f50| 20 20 20 20 20 20 42 4e | 45 20 41 0a 0a 20 20 20 | BN|E A.. |
|00001f60| 20 20 20 20 20 3b 20 53 | 65 74 20 75 70 20 63 6f | ; S|et up co|
|00001f70| 6e 64 69 74 69 6f 6e 73 | 20 66 6f 72 20 72 65 2d |nditions| for re-|
|00001f80| 65 6e 74 65 72 69 6e 67 | 20 74 61 73 6b 0a 0a 20 |entering| task.. |
|00001f90| 20 20 20 20 20 20 20 42 | 4c 20 53 45 54 43 41 4c | B|L SETCAL|
|00001fa0| 4c 41 46 54 45 52 20 20 | 20 20 20 20 20 20 20 3b |LAFTER | ;|
|00001fb0| 20 43 72 65 61 74 65 20 | 61 20 6e 65 77 20 43 61 | Create |a new Ca|
|00001fc0| 6c 6c 41 66 74 65 72 20 | 65 76 65 6e 74 0a 20 20 |llAfter |event. |
|00001fd0| 20 20 20 20 20 20 42 4c | 20 43 4c 41 49 4d 56 45 | BL| CLAIMVE|
|00001fe0| 43 53 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 20 |CS | ; |
|00001ff0| 61 6e 64 20 63 6c 61 69 | 6d 20 74 68 65 20 76 65 |and clai|m the ve|
|00002000| 63 74 6f 72 73 20 61 67 | 61 69 6e 2e 0a 0a 20 20 |ctors ag|ain... |
|00002010| 20 20 20 20 20 20 3b 20 | 49 66 20 74 68 65 20 74 | ; |If the t|
|00002020| 61 73 6b 20 69 73 20 62 | 65 69 6e 67 20 74 65 72 |ask is b|eing ter|
|00002030| 6d 69 6e 61 74 65 64 2c | 20 67 65 74 20 72 65 61 |minated,| get rea|
|00002040| 64 79 20 74 6f 20 63 61 | 6c 6c 20 4f 53 5f 45 78 |dy to ca|ll OS_Ex|
|00002050| 69 74 0a 0a 20 20 20 20 | 20 20 20 20 4c 44 20 52 |it.. | LD R|
|00002060| 30 2c 54 45 52 4d 49 4e | 41 54 49 4e 47 0a 20 20 |0,TERMIN|ATING. |
|00002070| 20 20 20 20 20 20 54 45 | 51 20 52 30 2c 23 30 0a | TE|Q R0,#0.|
|00002080| 20 20 20 20 20 20 20 20 | 4d 4f 56 20 52 30 2c 23 | |MOV R0,#|
|00002090| 30 0a 20 20 20 20 20 20 | 20 20 53 54 20 52 30 2c |0. | ST R0,|
|000020a0| 54 45 52 4d 49 4e 41 54 | 49 4e 47 0a 0a 20 20 20 |TERMINAT|ING.. |
|000020b0| 20 20 20 20 20 3b 20 42 | 61 63 6b 20 69 6e 74 6f | ; B|ack into|
|000020c0| 20 74 68 65 20 74 61 73 | 6b 20 61 67 61 69 6e 2e | the tas|k again.|
|000020d0| 20 20 57 68 65 6e 20 72 | 65 73 74 6f 72 69 6e 67 | When r|estoring|
|000020e0| 20 74 68 65 20 72 65 67 | 69 73 74 65 72 73 2c 20 | the reg|isters, |
|000020f0| 6e 6f 74 65 20 74 68 61 | 74 0a 20 20 20 20 20 20 |note tha|t. |
|00002100| 20 20 3b 20 74 68 65 20 | 63 6f 72 72 65 63 74 20 | ; the |correct |
|00002110| 6d 65 74 68 6f 64 20 66 | 6f 72 20 64 6f 69 6e 67 |method f|or doing|
|00002120| 20 74 68 69 73 20 69 73 | 20 76 65 72 79 20 64 65 | this is| very de|
|00002130| 70 65 6e 64 65 6e 74 20 | 6f 6e 20 74 68 65 20 63 |pendent |on the c|
|00002140| 75 72 72 65 6e 74 0a 20 | 20 20 20 20 20 20 20 3b |urrent. | ;|
|00002150| 20 70 72 6f 63 65 73 73 | 6f 72 20 6d 6f 64 65 20 | process|or mode |
|00002160| 2d 20 77 68 61 74 20 69 | 73 20 73 68 6f 77 6e 20 |- what i|s shown |
|00002170| 69 73 20 4e 4f 54 20 61 | 20 67 65 6e 65 72 61 6c |is NOT a| general|
|00002180| 20 77 61 79 20 6f 66 20 | 72 65 73 74 6f 72 69 6e | way of |restorin|
|00002190| 67 0a 20 20 20 20 20 20 | 20 20 3b 20 61 20 72 65 |g. | ; a re|
|000021a0| 67 69 73 74 65 72 20 64 | 75 6d 70 20 61 66 74 65 |gister d|ump afte|
|000021b0| 72 20 61 6e 20 65 78 63 | 65 70 74 69 6f 6e 2e 0a |r an exc|eption..|
|000021c0| 0a 20 20 20 20 20 20 20 | 20 41 44 52 20 52 30 2c |. | ADR R0,|
|000021d0| 52 45 47 42 55 46 0a 20 | 20 20 20 20 20 20 20 4c |REGBUF. | L|
|000021e0| 44 4d 45 51 49 41 20 52 | 30 2c 7b 52 30 2d 50 43 |DMEQIA R|0,{R0-PC|
|000021f0| 7d 5e 20 20 20 20 20 3b | 20 52 65 73 74 6f 72 65 |}^ ;| Restore|
|00002200| 20 74 68 65 20 74 61 73 | 6b 27 73 20 72 65 67 69 | the tas|k's regi|
|00002210| 73 74 65 72 73 2e 0a 20 | 20 20 20 20 20 20 20 4c |sters.. | L|
|00002220| 44 4d 49 41 20 52 30 2c | 7b 52 30 2d 52 31 34 7d |DMIA R0,|{R0-R14}|
|00002230| 0a 20 20 20 20 20 20 20 | 20 4d 4f 56 20 52 30 2c |. | MOV R0,|
|00002240| 23 30 0a 20 20 20 20 20 | 20 20 20 4c 49 54 20 52 |#0. | LIT R|
|00002250| 31 2c 26 35 38 34 35 34 | 32 34 31 0a 20 20 20 20 |1,&58454|241. |
|00002260| 20 20 20 20 4d 4f 56 20 | 52 32 2c 23 32 0a 20 20 | MOV |R2,#2. |
|00002270| 20 20 20 20 20 20 53 57 | 49 20 22 4f 53 5f 45 78 | SW|I "OS_Ex|
|00002280| 69 74 22 20 20 20 20 20 | 20 20 20 20 20 20 3b 20 |it" | ; |
|00002290| 54 61 73 6b 20 69 73 20 | 62 65 69 6e 67 20 74 65 |Task is |being te|
|000022a0| 72 6d 69 6e 61 74 65 64 | 2e 20 20 4e 6f 74 65 20 |rminated|. Note |
|000022b0| 68 6f 77 20 77 65 20 63 | 61 6e 0a 20 20 20 20 20 |how we c|an. |
|000022c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022d0| 20 20 20 20 20 20 20 3b | 20 65 76 65 6e 20 63 61 | ;| even ca|
|000022e0| 6c 6c 20 4f 53 5f 45 78 | 69 74 20 22 77 69 74 68 |ll OS_Ex|it "with|
|000022f0| 69 6e 22 20 61 20 43 61 | 6c 6c 42 61 63 6b 20 68 |in" a Ca|llBack h|
|00002300| 61 6e 64 6c 65 72 2e 0a | 0a 20 20 20 20 20 20 20 |andler..|. |
|00002310| 20 3b 20 47 65 6e 65 72 | 61 6c 20 72 75 62 62 69 | ; Gener|al rubbi|
|00002320| 73 68 20 74 6f 20 64 6f | 20 77 69 74 68 20 62 65 |sh to do| with be|
|00002330| 69 6e 67 20 61 20 57 69 | 6d 70 20 74 61 73 6b 2c |ing a Wi|mp task,|
|00002340| 20 6e 6f 74 68 69 6e 67 | 20 61 6d 61 7a 69 6e 67 | nothing| amazing|
|00002350| 20 68 65 72 65 2e 0a 0a | 4e 4f 4e 49 44 4c 45 50 | here...|NONIDLEP|
|00002360| 4f 4c 4c 0a 20 20 20 20 | 20 20 20 20 54 45 51 20 |OLL. | TEQ |
|00002370| 52 30 2c 23 31 37 0a 20 | 20 20 20 20 20 20 20 54 |R0,#17. | T|
|00002380| 45 51 4e 45 20 52 30 2c | 23 31 38 0a 20 20 20 20 |EQNE R0,|#18. |
|00002390| 20 20 20 20 4d 4f 56 4e | 45 53 20 50 43 2c 52 31 | MOVN|ES PC,R1|
|000023a0| 34 0a 20 20 20 20 20 20 | 20 20 4c 44 20 52 30 2c |4. | LD R0,|
|000023b0| 50 4f 4c 4c 42 4c 4f 43 | 4b 2b 31 36 0a 20 20 20 |POLLBLOC|K+16. |
|000023c0| 20 20 20 20 20 54 45 51 | 20 52 30 2c 23 30 20 3b | TEQ| R0,#0 ;|
|000023d0| 20 4d 65 73 73 61 67 65 | 5f 51 75 69 74 0a 20 20 | Message|_Quit. |
|000023e0| 20 20 20 20 20 20 4d 4f | 56 4e 45 53 20 50 43 2c | MO|VNES PC,|
|000023f0| 52 31 34 0a 20 20 20 20 | 20 20 20 20 41 44 52 20 |R14. | ADR |
|00002400| 52 31 33 2c 55 53 52 53 | 54 41 43 4b 0a 20 20 20 |R13,USRS|TACK. |
|00002410| 20 20 20 20 20 42 4c 20 | 43 41 4e 43 45 4c 54 49 | BL |CANCELTI|
|00002420| 43 4b 45 52 0a 20 20 20 | 20 20 20 20 20 4d 4f 56 |CKER. | MOV|
|00002430| 20 52 30 2c 23 30 0a 20 | 20 20 20 20 20 20 20 53 | R0,#0. | S|
|00002440| 54 20 52 30 2c 4f 55 54 | 42 55 46 46 45 52 52 45 |T R0,OUT|BUFFERRE|
|00002450| 41 44 0a 20 20 20 20 20 | 20 20 20 53 54 20 52 30 |AD. | ST R0|
|00002460| 2c 4f 55 54 42 55 46 46 | 45 52 57 52 49 54 45 0a |,OUTBUFF|ERWRITE.|
|00002470| 0a 20 20 20 20 20 20 20 | 20 3b 20 61 6e 64 20 63 |. | ; and c|
|00002480| 6f 6e 74 69 6e 75 65 20 | 69 6e 74 6f 20 4b 49 4c |ontinue |into KIL|
|00002490| 4c 4d 4f 44 55 4c 45 2c | 20 62 65 6c 6f 77 2e 0a |LMODULE,| below..|
|000024a0| 0a 20 20 20 20 20 20 20 | 20 3b 20 43 6f 64 65 20 |. | ; Code |
|000024b0| 74 6f 20 6b 69 6c 6c 20 | 74 68 65 20 6d 6f 64 75 |to kill |the modu|
|000024c0| 6c 65 20 6f 66 66 2e 20 | 20 4e 6f 74 68 69 6e 67 |le off. | Nothing|
|000024d0| 20 68 65 72 65 20 74 68 | 61 74 20 79 6f 75 20 64 | here th|at you d|
|000024e0| 6f 6e 27 74 20 67 65 74 | 20 69 6e 0a 20 20 20 20 |on't get| in. |
|000024f0| 20 20 20 20 3b 20 6f 74 | 68 65 72 20 6d 6f 64 75 | ; ot|her modu|
|00002500| 6c 65 73 2c 20 74 68 65 | 20 6f 6e 6c 79 20 70 6f |les, the| only po|
|00002510| 69 6e 74 20 77 6f 72 74 | 68 79 20 6f 66 20 6e 6f |int wort|hy of no|
|00002520| 74 65 20 69 73 20 74 68 | 61 74 20 77 65 20 68 61 |te is th|at we ha|
|00002530| 6e 67 20 61 72 6f 75 6e | 64 0a 20 20 20 20 20 20 |ng aroun|d. |
|00002540| 20 20 3b 20 69 6e 20 74 | 68 69 73 20 72 6f 75 74 | ; in t|his rout|
|00002550| 69 6e 65 20 75 6e 74 69 | 6c 20 61 6c 6c 20 74 68 |ine unti|l all th|
|00002560| 65 20 63 68 61 72 61 63 | 74 65 72 73 20 68 61 76 |e charac|ters hav|
|00002570| 65 20 62 65 65 6e 20 72 | 65 61 64 20 6f 75 74 20 |e been r|ead out |
|00002580| 6f 66 20 74 68 65 0a 20 | 20 20 20 20 20 20 20 3b |of the. | ;|
|00002590| 20 63 69 72 63 75 6c 61 | 72 20 62 75 66 66 65 72 | circula|r buffer|
|000025a0| 2e 0a 0a 4b 49 4c 4c 4d | 4f 44 55 4c 45 0a 20 20 |...KILLM|ODULE. |
|000025b0| 20 20 20 20 20 20 4c 4f | 43 41 4c 53 0a 0a 20 20 | LO|CALS.. |
|000025c0| 20 20 20 20 20 20 3b 20 | 52 65 73 74 6f 72 65 20 | ; |Restore |
|000025d0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 0a 0a 20 20 20 |environm|ent.. |
|000025e0| 20 20 20 20 20 4d 4f 56 | 20 52 30 2c 23 36 20 3b | MOV| R0,#6 ;|
|000025f0| 20 45 72 72 6f 72 20 68 | 61 6e 64 6c 65 72 0a 20 | Error h|andler. |
|00002600| 20 20 20 20 20 20 20 41 | 44 52 20 52 31 2c 4f 4c | A|DR R1,OL|
|00002610| 44 45 52 52 4f 52 48 41 | 4e 44 4c 45 52 0a 20 20 |DERRORHA|NDLER. |
|00002620| 20 20 20 20 20 20 4c 44 | 4d 49 41 20 52 31 2c 7b | LD|MIA R1,{|
|00002630| 52 31 2d 52 33 7d 0a 20 | 20 20 20 20 20 20 20 53 |R1-R3}. | S|
|00002640| 57 49 20 22 4f 53 5f 43 | 68 61 6e 67 65 45 6e 76 |WI "OS_C|hangeEnv|
|00002650| 69 72 6f 6e 6d 65 6e 74 | 22 0a 0a 20 20 20 20 20 |ironment|".. |
|00002660| 20 20 20 4d 4f 56 20 52 | 30 2c 23 31 31 20 3b 20 | MOV R|0,#11 ; |
|00002670| 45 78 69 74 20 68 61 6e | 64 6c 65 72 0a 20 20 20 |Exit han|dler. |
|00002680| 20 20 20 20 20 41 44 52 | 20 52 31 2c 4f 4c 44 45 | ADR| R1,OLDE|
|00002690| 58 49 54 48 41 4e 44 4c | 45 52 0a 20 20 20 20 20 |XITHANDL|ER. |
|000026a0| 20 20 20 4c 44 4d 49 41 | 20 52 31 2c 7b 52 31 2d | LDMIA| R1,{R1-|
|000026b0| 52 33 7d 0a 20 20 20 20 | 20 20 20 20 53 57 49 20 |R3}. | SWI |
|000026c0| 22 4f 53 5f 43 68 61 6e | 67 65 45 6e 76 69 72 6f |"OS_Chan|geEnviro|
|000026d0| 6e 6d 65 6e 74 22 0a 0a | 20 20 20 20 20 20 20 20 |nment"..| |
|000026e0| 3b 20 57 72 69 74 65 20 | 74 68 65 20 72 65 74 75 |; Write |the retu|
|000026f0| 72 6e 20 63 6f 64 65 20 | 69 6e 74 6f 20 74 68 65 |rn code |into the|
|00002700| 20 6d 65 73 73 61 67 65 | 20 77 6f 72 64 2c 20 66 | message| word, f|
|00002710| 6f 72 20 74 68 65 20 66 | 6f 72 65 67 72 6f 75 6e |or the f|oregroun|
|00002720| 64 0a 20 20 20 20 20 20 | 20 20 3b 20 74 61 73 6b |d. | ; task|
|00002730| 0a 0a 20 20 20 20 20 20 | 20 20 4c 44 20 52 30 2c |.. | LD R0,|
|00002740| 52 45 54 55 52 4e 43 4f | 44 45 0a 20 20 20 20 20 |RETURNCO|DE. |
|00002750| 20 20 20 4f 52 52 20 52 | 30 2c 52 30 2c 23 26 38 | ORR R|0,R0,#&8|
|00002760| 30 30 30 30 30 30 30 0a | 20 20 20 20 20 20 20 20 |0000000.| |
|00002770| 53 54 20 52 30 2c 4d 45 | 53 53 41 47 45 53 0a 0a |ST R0,ME|SSAGES..|
|00002780| 20 20 20 20 20 20 20 20 | 3b 20 4e 6f 77 20 63 61 | |; Now ca|
|00002790| 6c 6c 20 57 69 6d 70 5f | 50 6f 6c 6c 20 75 6e 74 |ll Wimp_|Poll unt|
|000027a0| 69 6c 20 61 6c 6c 20 74 | 68 65 20 63 68 61 72 61 |il all t|he chara|
|000027b0| 63 74 65 72 73 20 68 61 | 76 65 20 62 65 65 6e 20 |cters ha|ve been |
|000027c0| 72 65 6d 6f 76 65 64 20 | 66 72 6f 6d 0a 20 20 20 |removed |from. |
|000027d0| 20 20 20 20 20 3b 20 74 | 68 65 20 62 75 66 66 65 | ; t|he buffe|
|000027e0| 72 20 61 6e 64 20 74 68 | 65 20 72 65 74 75 72 6e |r and th|e return|
|000027f0| 20 63 6f 64 65 20 68 61 | 73 20 62 65 65 6e 20 72 | code ha|s been r|
|00002800| 65 61 64 0a 0a 41 0a 20 | 20 20 20 20 20 20 20 4d |ead..A. | M|
|00002810| 4f 56 20 52 30 2c 23 30 | 0a 20 20 20 20 20 20 20 |OV R0,#0|. |
|00002820| 20 41 44 52 20 52 31 2c | 50 4f 4c 4c 42 4c 4f 43 | ADR R1,|POLLBLOC|
|00002830| 4b 0a 20 20 20 20 20 20 | 20 20 53 57 49 20 22 57 |K. | SWI "W|
|00002840| 69 6d 70 5f 50 6f 6c 6c | 22 0a 20 20 20 20 20 20 |imp_Poll|". |
|00002850| 20 20 4c 44 20 52 30 2c | 4f 55 54 42 55 46 46 45 | LD R0,|OUTBUFFE|
|00002860| 52 52 45 41 44 0a 20 20 | 20 20 20 20 20 20 4c 44 |RREAD. | LD|
|00002870| 20 52 31 2c 4f 55 54 42 | 55 46 46 45 52 57 52 49 | R1,OUTB|UFFERWRI|
|00002880| 54 45 0a 20 20 20 20 20 | 20 20 20 54 45 51 20 52 |TE. | TEQ R|
|00002890| 30 2c 52 31 0a 20 20 20 | 20 20 20 20 20 42 4e 45 |0,R1. | BNE|
|000028a0| 20 41 0a 20 20 20 20 20 | 20 20 20 4c 44 20 52 30 | A. | LD R0|
|000028b0| 2c 4d 45 53 53 41 47 45 | 53 0a 20 20 20 20 20 20 |,MESSAGE|S. |
|000028c0| 20 20 54 45 51 20 52 30 | 2c 23 30 0a 20 20 20 20 | TEQ R0|,#0. |
|000028d0| 20 20 20 20 42 4e 45 20 | 41 0a 0a 20 20 20 20 20 | BNE |A.. |
|000028e0| 20 20 20 3b 20 46 69 6e | 69 73 68 20 6f 66 66 20 | ; Fin|ish off |
|000028f0| 61 73 20 61 20 57 69 6d | 70 20 74 61 73 6b 0a 0a |as a Wim|p task..|
|00002900| 20 20 20 20 20 20 20 20 | 4c 44 20 52 30 2c 54 41 | |LD R0,TA|
|00002910| 53 4b 48 41 4e 44 4c 45 | 0a 20 20 20 20 20 20 20 |SKHANDLE|. |
|00002920| 20 4c 49 54 20 52 31 2c | 26 34 42 35 33 34 31 35 | LIT R1,|&4B53415|
|00002930| 34 0a 20 20 20 20 20 20 | 20 20 53 57 49 20 22 57 |4. | SWI "W|
|00002940| 69 6d 70 5f 43 6c 6f 73 | 65 44 6f 77 6e 22 0a 0a |imp_Clos|eDown"..|
|00002950| 20 20 20 20 20 20 20 20 | 3b 20 52 65 6c 65 61 73 | |; Releas|
|00002960| 65 20 77 6f 72 6b 73 70 | 61 63 65 0a 0a 20 20 20 |e worksp|ace.. |
|00002970| 20 20 20 20 20 4d 4f 56 | 20 52 30 2c 23 37 0a 20 | MOV| R0,#7. |
|00002980| 20 20 20 20 20 20 20 4d | 4f 56 20 52 32 2c 52 31 | M|OV R2,R1|
|00002990| 32 0a 20 20 20 20 20 20 | 20 20 53 57 49 20 22 4f |2. | SWI "O|
|000029a0| 53 5f 4d 6f 64 75 6c 65 | 22 0a 0a 20 20 20 20 20 |S_Module|".. |
|000029b0| 20 20 20 3b 20 5a 65 72 | 6f 20 70 72 69 76 61 74 | ; Zer|o privat|
|000029c0| 65 20 77 6f 72 64 20 73 | 6f 20 52 49 53 43 20 4f |e word s|o RISC O|
|000029d0| 53 20 64 6f 65 73 6e 27 | 74 20 66 72 65 65 20 69 |S doesn'|t free i|
|000029e0| 74 20 61 67 61 69 6e 21 | 21 0a 0a 20 20 20 20 20 |t again!|!.. |
|000029f0| 20 20 20 4c 44 20 52 30 | 2c 50 52 49 56 41 54 45 | LD R0|,PRIVATE|
|00002a00| 57 4f 52 44 0a 20 20 20 | 20 20 20 20 20 4d 4f 56 |WORD. | MOV|
|00002a10| 20 52 31 2c 23 30 0a 20 | 20 20 20 20 20 20 20 53 | R1,#0. | S|
|00002a20| 54 52 20 52 31 2c 5b 52 | 30 5d 0a 0a 20 20 20 20 |TR R1,[R|0].. |
|00002a30| 20 20 20 20 3b 20 45 78 | 69 74 41 6e 64 44 69 65 | ; Ex|itAndDie|
|00002a40| 20 74 6f 20 65 6e 64 20 | 70 72 6f 67 72 61 6d 20 | to end |program |
|00002a50| 61 6e 64 20 6b 69 6c 6c | 20 6d 6f 64 75 6c 65 3b |and kill| module;|
|00002a60| 20 64 6f 6e 27 74 20 73 | 65 74 20 72 65 74 75 72 | don't s|et retur|
|00002a70| 6e 20 63 6f 64 65 0a 20 | 20 20 20 20 20 20 20 3b |n code. | ;|
|00002a80| 20 61 73 20 74 68 69 73 | 20 77 61 73 20 73 65 74 | as this| was set|
|00002a90| 20 62 79 20 66 6f 72 65 | 67 72 6f 75 6e 64 20 74 | by fore|ground t|
|00002aa0| 61 73 6b 2e 0a 0a 20 20 | 20 20 20 20 20 20 4d 4f |ask... | MO|
|00002ab0| 56 20 52 30 2c 23 30 0a | 20 20 20 20 20 20 20 20 |V R0,#0.| |
|00002ac0| 4d 4f 56 20 52 31 2c 23 | 30 0a 20 20 20 20 20 20 |MOV R1,#|0. |
|00002ad0| 20 20 4d 4f 56 20 52 32 | 2c 23 30 0a 20 20 20 20 | MOV R2|,#0. |
|00002ae0| 20 20 20 20 41 44 52 20 | 52 33 2c 54 49 54 4c 45 | ADR |R3,TITLE|
|00002af0| 0a 20 20 20 20 20 20 20 | 20 53 57 49 20 22 4f 53 |. | SWI "OS|
|00002b00| 5f 45 78 69 74 41 6e 64 | 44 69 65 22 0a 0a 20 20 |_ExitAnd|Die".. |
|00002b10| 20 20 20 20 20 20 3b 20 | 4a 75 73 74 20 61 20 73 | ; |Just a s|
|00002b20| 74 61 6e 64 61 72 64 20 | 73 65 72 76 69 63 65 20 |tandard |service |
|00002b30| 63 61 6c 6c 20 68 61 6e | 64 6c 65 72 2e 20 20 54 |call han|dler. T|
|00002b40| 72 61 70 73 20 53 65 72 | 76 69 63 65 5f 4d 65 6d |raps Ser|vice_Mem|
|00002b50| 6f 72 79 20 73 6f 20 77 | 65 0a 20 20 20 20 20 20 |ory so w|e. |
|00002b60| 20 20 3b 20 67 65 74 20 | 74 6f 20 6b 65 65 70 20 | ; get |to keep |
|00002b70| 74 68 65 20 6d 65 6d 6f | 72 79 20 74 68 61 74 20 |the memo|ry that |
|00002b80| 74 68 65 20 70 72 65 2d | 65 6d 70 74 65 64 20 74 |the pre-|empted t|
|00002b90| 61 73 6b 20 77 69 6c 6c | 20 72 75 6e 20 69 6e 21 |ask will| run in!|
|00002ba0| 0a 0a 53 45 52 56 49 43 | 45 0a 20 20 20 20 20 20 |..SERVIC|E. |
|00002bb0| 20 20 3b 20 4e 6f 74 68 | 69 6e 67 20 74 6f 20 64 | ; Noth|ing to d|
|00002bc0| 6f 20 68 65 72 65 20 65 | 78 63 65 70 74 20 76 65 |o here e|xcept ve|
|00002bd0| 74 6f 20 61 74 74 65 6d | 70 74 73 20 62 79 20 74 |to attem|pts by t|
|00002be0| 68 65 20 57 69 6d 70 20 | 74 6f 20 72 65 6d 6f 76 |he Wimp |to remov|
|00002bf0| 65 20 61 6c 6c 0a 20 20 | 20 20 20 20 20 20 3b 20 |e all. | ; |
|00002c00| 6f 75 72 20 6d 65 6d 6f | 72 79 20 2d 20 74 68 69 |our memo|ry - thi|
|00002c10| 73 20 69 73 20 74 72 69 | 65 64 20 6f 6e 63 65 20 |s is tri|ed once |
|00002c20| 61 74 20 74 68 65 20 73 | 74 61 72 74 2e 0a 0a 20 |at the s|tart... |
|00002c30| 20 20 20 20 20 20 20 54 | 45 51 20 52 31 2c 23 26 | T|EQ R1,#&|
|00002c40| 31 31 20 3b 20 53 65 72 | 76 69 63 65 5f 4d 65 6d |11 ; Ser|vice_Mem|
|00002c50| 6f 72 79 0a 20 20 20 20 | 20 20 20 20 4d 4f 56 4e |ory. | MOVN|
|00002c60| 45 53 20 50 43 2c 52 31 | 34 0a 20 20 20 20 20 20 |ES PC,R1|4. |
|00002c70| 20 20 53 54 4d 46 44 20 | 52 31 33 21 2c 7b 52 30 | STMFD |R13!,{R0|
|00002c80| 2c 52 31 32 2c 52 31 34 | 7d 0a 20 20 20 20 20 20 |,R12,R14|}. |
|00002c90| 20 20 4c 44 52 20 52 31 | 32 2c 5b 52 31 32 5d 0a | LDR R1|2,[R12].|
|00002ca0| 20 20 20 20 20 20 20 20 | 4c 44 20 52 30 2c 4d 45 | |LD R0,ME|
|00002cb0| 4d 4f 52 59 4d 41 50 56 | 45 54 4f 45 44 0a 20 20 |MORYMAPV|ETOED. |
|00002cc0| 20 20 20 20 20 20 54 45 | 51 20 52 30 2c 23 30 0a | TE|Q R0,#0.|
|00002cd0| 20 20 20 20 20 20 20 20 | 4c 44 4d 4e 45 46 44 20 | |LDMNEFD |
|00002ce0| 52 31 33 21 2c 7b 52 30 | 2c 52 31 32 2c 50 43 7d |R13!,{R0|,R12,PC}|
|00002cf0| 5e 0a 20 20 20 20 20 20 | 20 20 4d 4f 56 20 52 31 |^. | MOV R1|
|00002d00| 2c 23 30 0a 20 20 20 20 | 20 20 20 20 4d 4f 56 20 |,#0. | MOV |
|00002d10| 52 30 2c 23 31 0a 20 20 | 20 20 20 20 20 20 53 54 |R0,#1. | ST|
|00002d20| 20 52 30 2c 4d 45 4d 4f | 52 59 4d 41 50 56 45 54 | R0,MEMO|RYMAPVET|
|00002d30| 4f 45 44 0a 20 20 20 20 | 20 20 20 20 4c 44 4d 46 |OED. | LDMF|
|00002d40| 44 20 52 31 33 21 2c 7b | 52 30 2c 52 31 32 2c 50 |D R13!,{|R0,R12,P|
|00002d50| 43 7d 5e 0a 0a 20 20 20 | 20 20 20 20 20 3b 20 43 |C}^.. | ; C|
|00002d60| 6c 61 69 6d 20 77 72 69 | 74 65 20 63 68 61 72 61 |laim wri|te chara|
|00002d70| 63 74 65 72 20 28 73 6f | 20 77 65 20 72 65 64 69 |cter (so| we redi|
|00002d80| 72 65 63 74 20 74 68 65 | 20 70 72 6f 67 72 61 6d |rect the| program|
|00002d90| 27 73 20 6f 75 74 70 75 | 74 20 69 6e 74 6f 0a 20 |'s outpu|t into. |
|00002da0| 20 20 20 20 20 20 20 3b | 20 74 68 65 20 63 69 72 | ;| the cir|
|00002db0| 63 75 6c 61 72 20 62 75 | 66 66 65 72 29 20 61 6e |cular bu|ffer) an|
|00002dc0| 64 20 6f 70 65 6e 20 66 | 69 6c 65 20 28 73 6f 20 |d open f|ile (so |
|00002dd0| 77 65 20 6b 6e 6f 77 20 | 77 68 61 74 20 66 69 6c |we know |what fil|
|00002de0| 65 73 20 74 68 65 0a 20 | 20 20 20 20 20 20 20 3b |es the. | ;|
|00002df0| 20 70 72 6f 67 72 61 6d | 20 68 61 73 20 6f 70 65 | program| has ope|
|00002e00| 6e 2c 20 73 6f 20 77 65 | 20 63 61 6e 20 63 6c 6f |n, so we| can clo|
|00002e10| 73 65 20 74 68 65 6d 20 | 61 67 61 69 6e 20 69 66 |se them |again if|
|00002e20| 20 69 74 20 69 73 20 6b | 69 6c 6c 65 64 29 2e 0a | it is k|illed)..|
|00002e30| 0a 43 4c 41 49 4d 56 45 | 43 53 0a 20 20 20 20 20 |.CLAIMVE|CS. |
|00002e40| 20 20 20 4d 4f 56 20 52 | 30 2c 23 33 20 3b 20 57 | MOV R|0,#3 ; W|
|00002e50| 72 63 68 56 0a 20 20 20 | 20 20 20 20 20 41 44 52 |rchV. | ADR|
|00002e60| 20 52 31 2c 57 52 43 48 | 56 0a 20 20 20 20 20 20 | R1,WRCH|V. |
|00002e70| 20 20 4d 4f 56 20 52 32 | 2c 52 31 32 0a 20 20 20 | MOV R2|,R12. |
|00002e80| 20 20 20 20 20 53 57 49 | 20 22 4f 53 5f 43 6c 61 | SWI| "OS_Cla|
|00002e90| 69 6d 22 0a 0a 20 20 20 | 20 20 20 20 20 4d 4f 56 |im".. | MOV|
|00002ea0| 20 52 30 2c 23 26 44 20 | 3b 20 46 69 6e 64 56 0a | R0,#&D |; FindV.|
|00002eb0| 20 20 20 20 20 20 20 20 | 41 44 52 20 52 31 2c 46 | |ADR R1,F|
|00002ec0| 49 4e 44 56 0a 20 20 20 | 20 20 20 20 20 4d 4f 56 |INDV. | MOV|
|00002ed0| 20 52 32 2c 52 31 32 0a | 20 20 20 20 20 20 20 20 | R2,R12.| |
|00002ee0| 53 57 49 20 22 4f 53 5f | 43 6c 61 69 6d 22 0a 0a |SWI "OS_|Claim"..|
|00002ef0| 20 20 20 20 20 20 20 20 | 4d 4f 56 53 20 50 43 2c | |MOVS PC,|
|00002f00| 52 31 34 0a 0a 52 45 4c | 45 41 53 45 56 45 43 53 |R14..REL|EASEVECS|
|00002f10| 0a 20 20 20 20 20 20 20 | 20 4d 4f 56 20 52 30 2c |. | MOV R0,|
|00002f20| 23 33 20 3b 20 57 72 63 | 68 56 0a 20 20 20 20 20 |#3 ; Wrc|hV. |
|00002f30| 20 20 20 41 44 52 20 52 | 31 2c 57 52 43 48 56 0a | ADR R|1,WRCHV.|
|00002f40| 20 20 20 20 20 20 20 20 | 4d 4f 56 20 52 32 2c 52 | |MOV R2,R|
|00002f50| 31 32 0a 20 20 20 20 20 | 20 20 20 53 57 49 20 22 |12. | SWI "|
|00002f60| 4f 53 5f 52 65 6c 65 61 | 73 65 22 0a 0a 20 20 20 |OS_Relea|se".. |
|00002f70| 20 20 20 20 20 4d 4f 56 | 20 52 30 2c 23 26 44 20 | MOV| R0,#&D |
|00002f80| 3b 20 46 69 6e 64 56 0a | 20 20 20 20 20 20 20 20 |; FindV.| |
|00002f90| 41 44 52 20 52 31 2c 46 | 49 4e 44 56 0a 20 20 20 |ADR R1,F|INDV. |
|00002fa0| 20 20 20 20 20 4d 4f 56 | 20 52 32 2c 52 31 32 0a | MOV| R2,R12.|
|00002fb0| 20 20 20 20 20 20 20 20 | 53 57 49 20 22 4f 53 5f | |SWI "OS_|
|00002fc0| 52 65 6c 65 61 73 65 22 | 0a 0a 20 20 20 20 20 20 |Release"|.. |
|00002fd0| 20 20 4d 4f 56 53 20 50 | 43 2c 52 31 34 0a 0a 20 | MOVS P|C,R14.. |
|00002fe0| 20 20 20 20 20 20 20 3b | 20 53 63 68 65 64 75 6c | ;| Schedul|
|00002ff0| 65 20 61 20 64 65 73 63 | 68 65 64 75 6c 69 6e 67 |e a desc|heduling|
|00003000| 20 65 76 65 6e 74 2e 0a | 0a 53 45 54 43 41 4c 4c | event..|.SETCALL|
|00003010| 41 46 54 45 52 0a 20 20 | 20 20 20 20 20 20 4d 4f |AFTER. | MO|
|00003020| 56 20 52 30 2c 23 32 30 | 0a 20 20 20 20 20 20 20 |V R0,#20|. |
|00003030| 20 41 44 52 20 52 31 2c | 49 4e 54 45 52 52 55 50 | ADR R1,|INTERRUP|
|00003040| 54 0a 20 20 20 20 20 20 | 20 20 4d 4f 56 20 52 32 |T. | MOV R2|
|00003050| 2c 52 31 32 0a 20 20 20 | 20 20 20 20 20 53 57 49 |,R12. | SWI|
|00003060| 20 22 4f 53 5f 43 61 6c | 6c 41 66 74 65 72 22 0a | "OS_Cal|lAfter".|
|00003070| 20 20 20 20 20 20 20 20 | 4d 4f 56 53 20 50 43 2c | |MOVS PC,|
|00003080| 52 31 34 0a 0a 43 41 4e | 43 45 4c 54 49 43 4b 45 |R14..CAN|CELTICKE|
|00003090| 52 0a 20 20 20 20 20 20 | 20 20 53 54 4d 46 44 20 |R. | STMFD |
|000030a0| 52 31 33 21 2c 7b 52 30 | 2c 52 31 2c 52 31 34 7d |R13!,{R0|,R1,R14}|
|000030b0| 0a 20 20 20 20 20 20 20 | 20 41 44 52 20 52 30 2c |. | ADR R0,|
|000030c0| 49 4e 54 45 52 52 55 50 | 54 0a 20 20 20 20 20 20 |INTERRUP|T. |
|000030d0| 20 20 4d 4f 56 20 52 31 | 2c 52 31 32 0a 20 20 20 | MOV R1|,R12. |
|000030e0| 20 20 20 20 20 53 57 49 | 20 22 4f 53 5f 52 65 6d | SWI| "OS_Rem|
|000030f0| 6f 76 65 54 69 63 6b 65 | 72 45 76 65 6e 74 22 0a |oveTicke|rEvent".|
|00003100| 20 20 20 20 20 20 20 20 | 4c 44 4d 46 44 20 52 31 | |LDMFD R1|
|00003110| 33 21 2c 7b 52 30 2c 52 | 31 2c 50 43 7d 5e 0a 0a |3!,{R0,R|1,PC}^..|
|00003120| 57 52 43 48 56 0a 20 20 | 20 20 20 20 20 20 53 54 |WRCHV. | ST|
|00003130| 4d 46 44 20 52 31 33 21 | 2c 7b 52 31 2d 52 32 7d |MFD R13!|,{R1-R2}|
|00003140| 0a 20 20 20 20 20 20 20 | 20 4c 44 20 52 31 2c 4f |. | LD R1,O|
|00003150| 55 54 42 55 46 46 45 52 | 52 45 41 44 0a 20 20 20 |UTBUFFER|READ. |
|00003160| 20 20 20 20 20 4c 44 20 | 52 32 2c 4f 55 54 42 55 | LD |R2,OUTBU|
|00003170| 46 46 45 52 57 52 49 54 | 45 0a 20 20 20 20 20 20 |FFERWRIT|E. |
|00003180| 20 20 41 44 44 20 52 32 | 2c 52 32 2c 23 32 0a 20 | ADD R2|,R2,#2. |
|00003190| 20 20 20 20 20 20 20 42 | 49 43 20 52 32 2c 52 32 | B|IC R2,R2|
|000031a0| 2c 23 26 34 30 30 0a 20 | 20 20 20 20 20 20 20 54 |,#&400. | T|
|000031b0| 45 51 20 52 31 2c 52 32 | 0a 20 20 20 20 20 20 20 |EQ R1,R2|. |
|000031c0| 20 42 4c 45 51 20 43 41 | 4e 43 45 4c 54 49 43 4b | BLEQ CA|NCELTICK|
|000031d0| 45 52 0a 20 20 20 20 20 | 20 20 20 42 4c 45 51 20 |ER. | BLEQ |
|000031e0| 53 45 54 43 41 4c 4c 42 | 41 43 4b 0a 20 20 20 20 |SETCALLB|ACK. |
|000031f0| 20 20 20 20 4c 44 20 52 | 31 2c 4f 55 54 42 55 46 | LD R|1,OUTBUF|
|00003200| 46 45 52 57 52 49 54 45 | 0a 20 20 20 20 20 20 20 |FERWRITE|. |
|00003210| 20 41 44 52 20 52 32 2c | 4f 55 54 42 55 46 46 45 | ADR R2,|OUTBUFFE|
|00003220| 52 0a 20 20 20 20 20 20 | 20 20 53 54 52 42 20 52 |R. | STRB R|
|00003230| 30 2c 5b 52 31 2c 52 32 | 5d 0a 20 20 20 20 20 20 |0,[R1,R2|]. |
|00003240| 20 20 41 44 44 20 52 31 | 2c 52 31 2c 23 31 0a 20 | ADD R1|,R1,#1. |
|00003250| 20 20 20 20 20 20 20 42 | 49 43 20 52 31 2c 52 31 | B|IC R1,R1|
|00003260| 2c 23 26 34 30 30 0a 20 | 20 20 20 20 20 20 20 53 |,#&400. | S|
|00003270| 54 20 52 31 2c 4f 55 54 | 42 55 46 46 45 52 57 52 |T R1,OUT|BUFFERWR|
|00003280| 49 54 45 0a 20 20 20 20 | 20 20 20 20 4c 44 4d 46 |ITE. | LDMF|
|00003290| 44 20 52 31 33 21 2c 7b | 52 31 2d 52 32 7d 0a 20 |D R13!,{|R1-R2}. |
|000032a0| 20 20 20 20 20 20 20 4c | 44 4d 46 44 20 52 31 33 | L|DMFD R13|
|000032b0| 21 2c 7b 50 43 7d 5e 0a | 0a 46 49 4e 44 56 0a 20 |!,{PC}^.|.FINDV. |
|000032c0| 20 20 20 20 20 20 20 4c | 4f 43 41 4c 53 0a 20 20 | L|OCALS. |
|000032d0| 20 20 20 20 20 20 54 45 | 51 20 52 30 2c 23 30 20 | TE|Q R0,#0 |
|000032e0| 3b 20 43 6c 6f 73 69 6e | 67 20 61 20 66 69 6c 65 |; Closin|g a file|
|000032f0| 0a 20 20 20 20 20 20 20 | 20 42 45 51 20 41 0a 20 |. | BEQ A. |
|00003300| 20 20 20 20 20 20 20 53 | 54 4d 46 44 20 52 31 33 | S|TMFD R13|
|00003310| 21 2c 7b 52 31 32 7d 0a | 20 20 20 20 20 20 20 20 |!,{R12}.| |
|00003320| 53 54 4d 46 44 20 52 31 | 33 21 2c 7b 50 43 7d 0a |STMFD R1|3!,{PC}.|
|00003330| 20 20 20 20 20 20 20 20 | 4d 4f 56 53 20 50 43 2c | |MOVS PC,|
|00003340| 52 31 34 0a 20 20 20 20 | 20 20 20 20 4d 4f 56 20 |R14. | MOV |
|00003350| 52 30 2c 52 30 20 3b 20 | 4f 75 72 20 63 6f 64 65 |R0,R0 ; |Our code|
|00003360| 20 69 73 20 72 65 2d 65 | 6e 74 65 72 65 64 20 61 | is re-e|ntered a|
|00003370| 20 77 6f 72 64 20 66 75 | 72 74 68 65 72 20 64 6f | word fu|rther do|
|00003380| 77 6e 2c 20 73 6f 20 77 | 65 20 77 61 73 74 65 0a |wn, so w|e waste.|
|00003390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000033a0| 20 20 3b 20 74 68 69 73 | 20 77 6f 72 64 2e 0a 20 | ; this| word.. |
|000033b0| 20 20 20 20 20 20 20 4c | 44 4d 46 44 20 52 31 33 | L|DMFD R13|
|000033c0| 21 2c 7b 52 31 32 7d 0a | 20 20 20 20 20 20 20 20 |!,{R12}.| |
|000033d0| 4c 44 4d 56 53 46 44 20 | 52 31 33 21 2c 7b 50 43 |LDMVSFD |R13!,{PC|
|000033e0| 7d 0a 20 20 20 20 20 20 | 20 20 53 54 4d 46 44 20 |}. | STMFD |
|000033f0| 52 31 33 21 2c 7b 52 32 | 2c 52 33 7d 0a 20 20 20 |R13!,{R2|,R3}. |
|00003400| 20 20 20 20 20 41 44 52 | 20 52 32 2c 48 41 4e 44 | ADR| R2,HAND|
|00003410| 4c 45 53 0a 20 20 20 20 | 20 20 20 20 4c 44 20 52 |LES. | LD R|
|00003420| 33 2c 48 41 4e 44 4c 45 | 53 55 53 45 44 0a 20 20 |3,HANDLE|SUSED. |
|00003430| 20 20 20 20 20 20 54 45 | 51 20 52 33 2c 23 33 32 | TE|Q R3,#32|
|00003440| 0a 20 20 20 20 20 20 20 | 20 4d 4f 56 45 51 20 52 |. | MOVEQ R|
|00003450| 33 2c 23 33 31 0a 20 20 | 20 20 20 20 20 20 53 54 |3,#31. | ST|
|00003460| 52 20 52 30 2c 5b 52 32 | 2c 52 33 2c 4c 53 4c 20 |R R0,[R2|,R3,LSL |
|00003470| 23 32 5d 0a 20 20 20 20 | 20 20 20 20 41 44 44 20 |#2]. | ADD |
|00003480| 52 33 2c 52 33 2c 23 31 | 0a 20 20 20 20 20 20 20 |R3,R3,#1|. |
|00003490| 20 53 54 20 52 33 2c 48 | 41 4e 44 4c 45 53 55 53 | ST R3,H|ANDLESUS|
|000034a0| 45 44 0a 20 20 20 20 20 | 20 20 20 4c 44 4d 46 44 |ED. | LDMFD|
|000034b0| 20 52 31 33 21 2c 7b 52 | 32 2c 52 33 7d 0a 20 20 | R13!,{R|2,R3}. |
|000034c0| 20 20 20 20 20 20 4c 44 | 4d 46 44 20 52 31 33 21 | LD|MFD R13!|
|000034d0| 2c 7b 50 43 7d 5e 0a 41 | 0a 20 20 20 20 20 20 20 |,{PC}^.A|. |
|000034e0| 20 54 45 51 20 52 31 2c | 23 30 20 3b 20 43 6c 6f | TEQ R1,|#0 ; Clo|
|000034f0| 73 69 6e 67 20 61 6c 6c | 20 66 69 6c 65 73 0a 20 |sing all| files. |
|00003500| 20 20 20 20 20 20 20 42 | 45 51 20 42 0a 20 20 20 | B|EQ B. |
|00003510| 20 20 20 20 20 53 54 4d | 46 44 20 52 31 33 21 2c | STM|FD R13!,|
|00003520| 7b 52 32 2c 52 38 2c 52 | 39 2c 52 31 34 7d 0a 20 |{R2,R8,R|9,R14}. |
|00003530| 20 20 20 20 20 20 20 4c | 44 20 52 38 2c 48 41 4e | L|D R8,HAN|
|00003540| 44 4c 45 53 55 53 45 44 | 0a 20 20 20 20 20 20 20 |DLESUSED|. |
|00003550| 20 41 44 52 20 52 39 2c | 48 41 4e 44 4c 45 53 0a | ADR R9,|HANDLES.|
|00003560| 43 0a 20 20 20 20 20 20 | 20 20 54 45 51 20 52 38 |C. | TEQ R8|
|00003570| 2c 23 30 0a 20 20 20 20 | 20 20 20 20 4c 44 4d 45 |,#0. | LDME|
|00003580| 51 46 44 20 52 31 33 21 | 2c 7b 52 32 2c 52 38 2c |QFD R13!|,{R2,R8,|
|00003590| 52 39 2c 50 43 7d 5e 0a | 20 20 20 20 20 20 20 20 |R9,PC}^.| |
|000035a0| 4c 44 52 20 52 32 2c 5b | 52 39 5d 2c 23 34 0a 20 |LDR R2,[|R9],#4. |
|000035b0| 20 20 20 20 20 20 20 53 | 55 42 20 52 38 2c 52 38 | S|UB R8,R8|
|000035c0| 2c 23 31 0a 20 20 20 20 | 20 20 20 20 54 45 51 20 |,#1. | TEQ |
|000035d0| 52 31 2c 52 32 0a 20 20 | 20 20 20 20 20 20 42 4e |R1,R2. | BN|
|000035e0| 45 20 43 0a 20 20 20 20 | 20 20 20 20 4d 4f 56 20 |E C. | MOV |
|000035f0| 52 32 2c 23 30 0a 20 20 | 20 20 20 20 20 20 53 54 |R2,#0. | ST|
|00003600| 52 20 52 32 2c 5b 52 39 | 2c 23 2d 34 5d 0a 20 20 |R R2,[R9|,#-4]. |
|00003610| 20 20 20 20 20 20 4c 44 | 4d 46 44 20 52 31 33 21 | LD|MFD R13!|
|00003620| 2c 7b 52 32 2c 52 38 2c | 52 39 2c 50 43 7d 5e 0a |,{R2,R8,|R9,PC}^.|
|00003630| 42 0a 20 20 20 20 20 20 | 20 20 53 54 4d 46 44 20 |B. | STMFD |
|00003640| 52 31 33 21 2c 7b 52 30 | 2c 52 31 34 7d 0a 20 20 |R13!,{R0|,R14}. |
|00003650| 20 20 20 20 20 20 4d 4f | 56 20 52 30 2c 23 30 0a | MO|V R0,#0.|
|00003660| 20 20 20 20 20 20 20 20 | 53 54 20 52 30 2c 48 41 | |ST R0,HA|
|00003670| 4e 44 4c 45 53 55 53 45 | 44 0a 20 20 20 20 20 20 |NDLESUSE|D. |
|00003680| 20 20 4c 44 4d 46 44 20 | 52 31 33 21 2c 7b 52 30 | LDMFD |R13!,{R0|
|00003690| 2c 50 43 7d 5e 0a 0a 49 | 4e 54 45 52 52 55 50 54 |,PC}^..I|NTERRUPT|
|000036a0| 0a 20 20 20 20 20 20 20 | 20 3b 20 52 65 6d 65 6d |. | ; Remem|
|000036b0| 62 65 72 20 74 68 61 74 | 20 77 65 20 6d 75 73 74 |ber that| we must|
|000036c0| 20 6e 6f 74 20 63 6f 72 | 72 75 70 74 20 52 31 34 | not cor|rupt R14|
|000036d0| 73 76 63 2c 20 73 6f 20 | 77 65 20 68 61 76 65 20 |svc, so |we have |
|000036e0| 74 6f 20 6d 65 73 73 20 | 61 62 6f 75 74 0a 20 20 |to mess |about. |
|000036f0| 20 20 20 20 20 20 3b 20 | 77 69 74 68 20 63 68 61 | ; |with cha|
|00003700| 6e 67 69 6e 67 20 70 72 | 6f 63 65 73 73 6f 72 20 |nging pr|ocessor |
|00003710| 6d 6f 64 65 2e 0a 0a 20 | 20 20 20 20 20 20 20 53 |mode... | S|
|00003720| 54 4d 46 44 20 52 31 33 | 21 2c 7b 52 30 2c 52 31 |TMFD R13|!,{R0,R1|
|00003730| 34 7d 20 20 20 20 20 3b | 20 52 31 34 69 72 71 20 |4} ;| R14irq |
|00003740| 67 6f 65 73 20 6f 6e 74 | 6f 20 69 72 71 20 73 74 |goes ont|o irq st|
|00003750| 61 63 6b 2e 0a 20 20 20 | 20 20 20 20 20 4d 4f 56 |ack.. | MOV|
|00003760| 53 20 52 30 2c 50 43 20 | 20 20 20 20 20 20 20 20 |S R0,PC | |
|00003770| 20 20 20 20 20 3b 20 50 | 72 65 73 65 72 76 65 20 | ; P|reserve |
|00003780| 6f 6c 64 20 70 72 6f 63 | 65 73 73 6f 72 20 6d 6f |old proc|essor mo|
|00003790| 64 65 2e 0a 20 20 20 20 | 20 20 20 20 54 45 51 50 |de.. | TEQP|
|000037a0| 20 50 43 2c 23 33 0a 20 | 20 20 20 20 20 20 20 4d | PC,#3. | M|
|000037b0| 4f 56 20 52 30 2c 52 30 | 0a 20 20 20 20 20 20 20 |OV R0,R0|. |
|000037c0| 20 53 54 4d 46 44 20 52 | 31 33 21 2c 7b 52 31 34 | STMFD R|13!,{R14|
|000037d0| 7d 0a 20 20 20 20 20 20 | 20 20 42 4c 20 53 45 54 |}. | BL SET|
|000037e0| 43 41 4c 4c 42 41 43 4b | 20 20 20 20 20 20 20 20 |CALLBACK| |
|000037f0| 20 20 3b 20 55 73 65 20 | 43 61 6c 6c 42 61 63 6b | ; Use |CallBack|
|00003800| 20 63 6f 64 65 2e 0a 20 | 20 20 20 20 20 20 20 4c | code.. | L|
|00003810| 44 4d 46 44 20 52 31 33 | 21 2c 7b 52 31 34 7d 0a |DMFD R13|!,{R14}.|
|00003820| 20 20 20 20 20 20 20 20 | 54 45 51 50 20 52 30 2c | |TEQP R0,|
|00003830| 23 30 0a 20 20 20 20 20 | 20 20 20 4d 4f 56 20 52 |#0. | MOV R|
|00003840| 30 2c 52 30 0a 20 20 20 | 20 20 20 20 20 4c 44 4d |0,R0. | LDM|
|00003850| 46 44 20 52 31 33 21 2c | 7b 52 30 2c 50 43 7d 5e |FD R13!,|{R0,PC}^|
|00003860| 0a 0a 20 20 20 20 20 20 | 20 20 3b 20 54 68 65 20 |.. | ; The |
|00003870| 66 6f 6c 6c 6f 77 69 6e | 67 20 69 73 20 6a 75 73 |followin|g is jus|
|00003880| 74 20 73 74 61 6e 64 61 | 72 64 20 43 61 6c 6c 42 |t standa|rd CallB|
|00003890| 61 63 6b 20 63 6f 64 65 | 2c 20 69 74 20 72 65 73 |ack code|, it res|
|000038a0| 74 6f 72 65 73 20 74 68 | 65 0a 20 20 20 20 20 20 |tores th|e. |
|000038b0| 20 20 3b 20 68 61 6e 64 | 6c 65 72 20 61 64 64 72 | ; hand|ler addr|
|000038c0| 65 73 73 20 74 6f 20 69 | 74 73 20 6f 6c 64 20 76 |ess to i|ts old v|
|000038d0| 61 6c 75 65 20 62 65 66 | 6f 72 65 20 72 65 74 75 |alue bef|ore retu|
|000038e0| 72 6e 69 6e 67 20 74 6f | 20 74 68 65 20 6d 61 69 |rning to| the mai|
|000038f0| 6e 0a 20 20 20 20 20 20 | 20 20 3b 20 70 72 6f 67 |n. | ; prog|
|00003900| 72 61 6d 20 6c 6f 6f 70 | 2e 0a 0a 53 45 54 43 41 |ram loop|...SETCA|
|00003910| 4c 4c 42 41 43 4b 0a 20 | 20 20 20 20 20 20 20 53 |LLBACK. | S|
|00003920| 54 4d 46 44 20 52 31 33 | 21 2c 7b 52 30 2d 52 33 |TMFD R13|!,{R0-R3|
|00003930| 2c 52 31 34 7d 0a 20 20 | 20 20 20 20 20 20 4d 4f |,R14}. | MO|
|00003940| 56 20 52 30 2c 23 37 20 | 20 20 20 20 20 20 20 20 |V R0,#7 | |
|00003950| 20 20 20 20 20 20 3b 20 | 43 61 6c 6c 42 61 63 6b | ; |CallBack|
|00003960| 0a 20 20 20 20 20 20 20 | 20 41 44 52 20 52 31 2c |. | ADR R1,|
|00003970| 43 41 4c 4c 42 41 43 4b | 48 41 4e 44 4c 45 52 0a |CALLBACK|HANDLER.|
|00003980| 20 20 20 20 20 20 20 20 | 4d 4f 56 20 52 32 2c 52 | |MOV R2,R|
|00003990| 31 32 0a 20 20 20 20 20 | 20 20 20 41 44 52 20 52 |12. | ADR R|
|000039a0| 33 2c 52 45 47 42 55 46 | 0a 20 20 20 20 20 20 20 |3,REGBUF|. |
|000039b0| 20 53 57 49 20 22 4f 53 | 5f 43 68 61 6e 67 65 45 | SWI "OS|_ChangeE|
|000039c0| 6e 76 69 72 6f 6e 6d 65 | 6e 74 22 0a 20 20 20 20 |nvironme|nt". |
|000039d0| 20 20 20 20 41 44 52 20 | 52 31 34 2c 4f 4c 44 43 | ADR |R14,OLDC|
|000039e0| 41 4c 4c 42 41 43 4b 0a | 20 20 20 20 20 20 20 20 |ALLBACK.| |
|000039f0| 53 54 4d 49 41 20 52 31 | 34 2c 7b 52 31 2d 52 33 |STMIA R1|4,{R1-R3|
|00003a00| 7d 0a 20 20 20 20 20 20 | 20 20 53 57 49 20 22 4f |}. | SWI "O|
|00003a10| 53 5f 53 65 74 43 61 6c | 6c 42 61 63 6b 22 0a 20 |S_SetCal|lBack". |
|00003a20| 20 20 20 20 20 20 20 4c | 44 4d 46 44 20 52 31 33 | L|DMFD R13|
|00003a30| 21 2c 7b 52 30 2d 52 33 | 2c 50 43 7d 5e 0a 0a 43 |!,{R0-R3|,PC}^..C|
|00003a40| 41 4c 4c 42 41 43 4b 48 | 41 4e 44 4c 45 52 0a 20 |ALLBACKH|ANDLER. |
|00003a50| 20 20 20 20 20 20 20 54 | 45 51 50 20 50 43 2c 23 | T|EQP PC,#|
|00003a60| 30 0a 20 20 20 20 20 20 | 20 20 4d 4f 56 20 52 30 |0. | MOV R0|
|00003a70| 2c 52 30 0a 20 20 20 20 | 20 20 20 20 4d 4f 56 20 |,R0. | MOV |
|00003a80| 52 30 2c 23 37 0a 20 20 | 20 20 20 20 20 20 41 44 |R0,#7. | AD|
|00003a90| 52 20 52 31 2c 4f 4c 44 | 43 41 4c 4c 42 41 43 4b |R R1,OLD|CALLBACK|
|00003aa0| 0a 20 20 20 20 20 20 20 | 20 4c 44 4d 49 41 20 52 |. | LDMIA R|
|00003ab0| 31 2c 7b 52 31 2d 52 33 | 7d 0a 20 20 20 20 20 20 |1,{R1-R3|}. |
|00003ac0| 20 20 53 57 49 20 22 4f | 53 5f 43 68 61 6e 67 65 | SWI "O|S_Change|
|00003ad0| 45 6e 76 69 72 6f 6e 6d | 65 6e 74 22 0a 20 20 20 |Environm|ent". |
|00003ae0| 20 20 20 20 20 42 20 4d | 41 49 4e 4c 4f 4f 50 0a | B M|AINLOOP.|
|00003af0| 0a 20 20 20 20 20 20 20 | 20 3b 20 49 66 20 77 65 |. | ; If we|
|00003b00| 20 67 65 74 20 61 6e 20 | 65 72 72 6f 72 20 72 65 | get an |error re|
|00003b10| 70 6f 72 74 65 64 2c 20 | 77 65 20 77 72 69 74 65 |ported, |we write|
|00003b20| 20 69 74 20 69 6e 74 6f | 20 74 68 65 20 63 69 72 | it into| the cir|
|00003b30| 63 75 6c 61 72 20 62 75 | 66 66 65 72 0a 20 20 20 |cular bu|ffer. |
|00003b40| 20 20 20 20 20 3b 20 61 | 6e 64 20 6b 69 6c 6c 20 | ; a|nd kill |
|00003b50| 74 68 65 20 70 72 6f 67 | 72 61 6d 2e 0a 0a 45 52 |the prog|ram...ER|
|00003b60| 52 4f 52 48 41 4e 44 4c | 45 52 0a 20 20 20 20 20 |RORHANDL|ER. |
|00003b70| 20 20 20 4d 4f 56 20 52 | 31 32 2c 52 30 0a 20 20 | MOV R|12,R0. |
|00003b80| 20 20 20 20 20 20 4d 4f | 56 20 52 30 2c 23 32 0a | MO|V R0,#2.|
|00003b90| 20 20 20 20 20 20 20 20 | 53 54 20 52 30 2c 52 45 | |ST R0,RE|
|00003ba0| 54 55 52 4e 43 4f 44 45 | 0a 20 20 20 20 20 20 20 |TURNCODE|. |
|00003bb0| 20 53 57 49 20 22 4f 53 | 5f 4e 65 77 4c 69 6e 65 | SWI "OS|_NewLine|
|00003bc0| 22 0a 20 20 20 20 20 20 | 20 20 41 44 52 20 52 30 |". | ADR R0|
|00003bd0| 2c 45 52 52 4f 52 42 55 | 46 46 45 52 2b 38 0a 20 |,ERRORBU|FFER+8. |
|00003be0| 20 20 20 20 20 20 20 53 | 57 49 20 22 4f 53 5f 57 | S|WI "OS_W|
|00003bf0| 72 69 74 65 30 22 0a 20 | 20 20 20 20 20 20 20 53 |rite0". | S|
|00003c00| 57 49 20 22 4f 53 5f 4e | 65 77 4c 69 6e 65 22 0a |WI "OS_N|ewLine".|
|00003c10| 20 20 20 20 20 20 20 20 | 41 44 52 20 52 31 33 2c | |ADR R13,|
|00003c20| 55 53 52 53 54 41 43 4b | 0a 20 20 20 20 20 20 20 |USRSTACK|. |
|00003c30| 20 42 4c 20 43 41 4e 43 | 45 4c 54 49 43 4b 45 52 | BL CANC|ELTICKER|
|00003c40| 0a 20 20 20 20 20 20 20 | 20 42 4c 20 52 45 4c 45 |. | BL RELE|
|00003c50| 41 53 45 56 45 43 53 0a | 20 20 20 20 20 20 20 20 |ASEVECS.| |
|00003c60| 42 20 4b 49 4c 4c 4d 4f | 44 55 4c 45 0a 0a 20 20 |B KILLMO|DULE.. |
|00003c70| 20 20 20 20 20 20 3b 20 | 49 66 20 74 68 65 20 70 | ; |If the p|
|00003c80| 72 6f 67 72 61 6d 20 65 | 78 69 74 73 2c 20 77 65 |rogram e|xits, we|
|00003c90| 20 74 69 64 79 20 75 70 | 2e 0a 0a 45 58 49 54 48 | tidy up|...EXITH|
|00003ca0| 41 4e 44 4c 45 52 0a 20 | 20 20 20 20 20 20 20 53 |ANDLER. | S|
|00003cb0| 54 20 52 32 2c 52 45 54 | 55 52 4e 43 4f 44 45 0a |T R2,RET|URNCODE.|
|00003cc0| 20 20 20 20 20 20 20 20 | 41 44 52 20 52 31 33 2c | |ADR R13,|
|00003cd0| 55 53 52 53 54 41 43 4b | 0a 20 20 20 20 20 20 20 |USRSTACK|. |
|00003ce0| 20 42 4c 20 43 41 4e 43 | 45 4c 54 49 43 4b 45 52 | BL CANC|ELTICKER|
|00003cf0| 0a 20 20 20 20 20 20 20 | 20 42 4c 20 52 45 4c 45 |. | BL RELE|
|00003d00| 41 53 45 56 45 43 53 0a | 20 20 20 20 20 20 20 20 |ASEVECS.| |
|00003d10| 42 20 4b 49 4c 4c 4d 4f | 44 55 4c 45 0a 0a 20 20 |B KILLMO|DULE.. |
|00003d20| 20 20 20 20 20 20 3b 20 | 54 68 65 73 65 20 6d 65 | ; |These me|
|00003d30| 73 73 61 67 65 73 20 63 | 6f 6e 74 72 6f 6c 20 74 |ssages c|ontrol t|
|00003d40| 68 65 20 70 72 65 2d 65 | 6d 70 74 65 64 20 74 61 |he pre-e|mpted ta|
|00003d50| 73 6b 2e 20 20 54 68 65 | 79 20 61 6c 6c 6f 77 20 |sk. The|y allow |
|00003d60| 74 68 65 0a 20 20 20 20 | 20 20 20 20 3b 20 63 6f |the. | ; co|
|00003d70| 6e 74 72 6f 6c 6c 69 6e | 67 20 70 72 6f 63 65 73 |ntrollin|g proces|
|00003d80| 73 20 74 6f 20 73 74 6f | 70 20 61 6e 64 20 72 65 |s to sto|p and re|
|00003d90| 73 74 61 72 74 20 69 74 | 2c 20 74 65 72 6d 69 6e |start it|, termin|
|00003da0| 61 74 65 20 69 74 20 28 | 77 68 69 63 68 0a 20 20 |ate it (|which. |
|00003db0| 20 20 20 20 20 20 3b 20 | 69 6e 76 6f 6b 65 73 20 | ; |invokes |
|00003dc0| 74 68 65 20 70 72 6f 67 | 72 61 6d 27 73 20 65 78 |the prog|ram's ex|
|00003dd0| 69 74 20 68 61 6e 64 6c | 65 72 29 20 61 6e 64 20 |it handl|er) and |
|00003de0| 6b 69 6c 6c 20 69 74 20 | 28 77 68 69 63 68 20 77 |kill it |(which w|
|00003df0| 69 6c 6c 20 6e 65 76 65 | 72 0a 20 20 20 20 20 20 |ill neve|r. |
|00003e00| 20 20 3b 20 72 65 73 63 | 68 65 64 75 6c 65 20 69 | ; resc|hedule i|
|00003e10| 74 2c 20 61 6e 64 20 6a | 75 73 74 20 63 6c 6f 73 |t, and j|ust clos|
|00003e20| 65 73 20 61 6c 6c 20 69 | 74 73 20 66 69 6c 65 73 |es all i|ts files|
|00003e30| 20 62 65 66 6f 72 65 20 | 73 68 75 74 74 69 6e 67 | before |shutting|
|00003e40| 20 64 6f 77 6e 29 2e 0a | 0a 52 45 43 45 49 56 45 | down)..|.RECEIVE|
|00003e50| 4d 45 53 53 41 47 45 53 | 0a 20 20 20 20 20 20 20 |MESSAGES|. |
|00003e60| 20 4c 4f 43 41 4c 53 0a | 20 20 20 20 20 20 20 20 | LOCALS.| |
|00003e70| 53 54 4d 46 44 20 52 31 | 33 21 2c 7b 52 30 2c 52 |STMFD R1|3!,{R0,R|
|00003e80| 31 34 7d 0a 20 20 20 20 | 20 20 20 20 4c 44 20 52 |14}. | LD R|
|00003e90| 30 2c 4d 45 53 53 41 47 | 45 53 0a 20 20 20 20 20 |0,MESSAG|ES. |
|00003ea0| 20 20 20 53 54 4d 46 44 | 20 52 31 33 21 2c 7b 52 | STMFD| R13!,{R|
|00003eb0| 30 7d 0a 20 20 20 20 20 | 20 20 20 54 53 54 20 52 |0}. | TST R|
|00003ec0| 30 2c 23 26 38 30 30 30 | 30 30 30 30 0a 20 20 20 |0,#&8000|0000. |
|00003ed0| 20 20 20 20 20 4d 4f 56 | 45 51 20 52 30 2c 23 30 | MOV|EQ R0,#0|
|00003ee0| 0a 20 20 20 20 20 20 20 | 20 53 54 20 52 30 2c 4d |. | ST R0,M|
|00003ef0| 45 53 53 41 47 45 53 0a | 20 20 20 20 20 20 20 20 |ESSAGES.| |
|00003f00| 4c 44 4d 46 44 20 52 31 | 33 21 2c 7b 52 30 7d 0a |LDMFD R1|3!,{R0}.|
|00003f10| 20 20 20 20 20 20 20 20 | 54 45 51 20 52 30 2c 23 | |TEQ R0,#|
|00003f20| 31 20 3b 20 53 75 73 70 | 65 6e 64 0a 20 20 20 20 |1 ; Susp|end. |
|00003f30| 20 20 20 20 42 45 51 20 | 41 0a 20 20 20 20 20 20 | BEQ |A. |
|00003f40| 20 20 54 45 51 20 52 30 | 2c 23 32 20 3b 20 52 65 | TEQ R0|,#2 ; Re|
|00003f50| 73 74 61 72 74 0a 20 20 | 20 20 20 20 20 20 42 45 |start. | BE|
|00003f60| 51 20 42 0a 20 20 20 20 | 20 20 20 20 54 45 51 20 |Q B. | TEQ |
|00003f70| 52 30 2c 23 33 20 3b 20 | 54 65 72 6d 69 6e 61 74 |R0,#3 ; |Terminat|
|00003f80| 65 0a 20 20 20 20 20 20 | 20 20 42 45 51 20 43 0a |e. | BEQ C.|
|00003f90| 20 20 20 20 20 20 20 20 | 54 45 51 20 52 30 2c 23 | |TEQ R0,#|
|00003fa0| 34 20 3b 20 4b 69 6c 6c | 0a 20 20 20 20 20 20 20 |4 ; Kill|. |
|00003fb0| 20 42 45 51 20 44 0a 20 | 20 20 20 20 20 20 20 4c | BEQ D. | L|
|00003fc0| 44 4d 46 44 20 52 31 33 | 21 2c 7b 52 30 2c 50 43 |DMFD R13|!,{R0,PC|
|00003fd0| 7d 5e 0a 41 0a 20 20 20 | 20 20 20 20 20 4d 4f 56 |}^.A. | MOV|
|00003fe0| 20 52 30 2c 23 31 0a 20 | 20 20 20 20 20 20 20 53 | R0,#1. | S|
|00003ff0| 54 20 52 30 2c 53 55 53 | 50 45 4e 44 45 44 0a 20 |T R0,SUS|PENDED. |
|00004000| 20 20 20 20 20 20 20 4c | 44 4d 46 44 20 52 31 33 | L|DMFD R13|
|00004010| 21 2c 7b 52 30 2c 50 43 | 7d 5e 0a 42 0a 20 20 20 |!,{R0,PC|}^.B. |
|00004020| 20 20 20 20 20 4d 4f 56 | 20 52 30 2c 23 30 0a 20 | MOV| R0,#0. |
|00004030| 20 20 20 20 20 20 20 53 | 54 20 52 30 2c 53 55 53 | S|T R0,SUS|
|00004040| 50 45 4e 44 45 44 0a 20 | 20 20 20 20 20 20 20 4c |PENDED. | L|
|00004050| 44 4d 46 44 20 52 31 33 | 21 2c 7b 52 30 2c 50 43 |DMFD R13|!,{R0,PC|
|00004060| 7d 5e 0a 43 0a 20 20 20 | 20 20 20 20 20 4d 4f 56 |}^.C. | MOV|
|00004070| 20 52 30 2c 23 31 0a 20 | 20 20 20 20 20 20 20 53 | R0,#1. | S|
|00004080| 54 20 52 30 2c 54 45 52 | 4d 49 4e 41 54 49 4e 47 |T R0,TER|MINATING|
|00004090| 0a 20 20 20 20 20 20 20 | 20 4c 44 4d 46 44 20 52 |. | LDMFD R|
|000040a0| 31 33 21 2c 7b 52 30 2c | 50 43 7d 5e 0a 44 0a 20 |13!,{R0,|PC}^.D. |
|000040b0| 20 20 20 20 20 20 20 4d | 4f 56 20 52 39 2c 23 30 | M|OV R9,#0|
|000040c0| 0a 20 20 20 20 20 20 20 | 20 4c 44 20 52 31 30 2c |. | LD R10,|
|000040d0| 48 41 4e 44 4c 45 53 55 | 53 45 44 0a 20 20 20 20 |HANDLESU|SED. |
|000040e0| 20 20 20 20 41 44 52 20 | 52 31 31 2c 48 41 4e 44 | ADR |R11,HAND|
|000040f0| 4c 45 53 0a 45 0a 20 20 | 20 20 20 20 20 20 54 45 |LES.E. | TE|
|00004100| 51 20 52 31 30 2c 23 30 | 0a 20 20 20 20 20 20 20 |Q R10,#0|. |
|00004110| 20 42 45 51 20 46 0a 20 | 20 20 20 20 20 20 20 4d | BEQ F. | M|
|00004120| 4f 56 20 52 30 2c 23 30 | 0a 20 20 20 20 20 20 20 |OV R0,#0|. |
|00004130| 20 4c 44 52 20 52 31 2c | 5b 52 31 31 5d 2c 23 34 | LDR R1,|[R11],#4|
|00004140| 0a 20 20 20 20 20 20 20 | 20 54 45 51 20 52 31 2c |. | TEQ R1,|
|00004150| 23 30 0a 20 20 20 20 20 | 20 20 20 41 44 44 4e 45 |#0. | ADDNE|
|00004160| 20 52 39 2c 52 39 2c 23 | 31 0a 20 20 20 20 20 20 | R9,R9,#|1. |
|00004170| 20 20 53 57 49 4e 45 20 | 22 4f 53 5f 46 69 6e 64 | SWINE |"OS_Find|
|00004180| 22 0a 20 20 20 20 20 20 | 20 20 53 55 42 20 52 31 |". | SUB R1|
|00004190| 30 2c 52 31 30 2c 23 31 | 0a 20 20 20 20 20 20 20 |0,R10,#1|. |
|000041a0| 20 42 20 45 0a 46 0a 20 | 20 20 20 20 20 20 20 42 | B E.F. | B|
|000041b0| 4c 20 43 4c 41 49 4d 56 | 45 43 53 0a 20 20 20 20 |L CLAIMV|ECS. |
|000041c0| 20 20 20 20 53 57 49 20 | 22 4f 53 5f 57 72 69 74 | SWI |"OS_Writ|
|000041d0| 65 53 22 0a 20 20 20 20 | 20 20 20 20 44 42 20 31 |eS". | DB 1|
|000041e0| 33 2c 31 30 2c 31 30 2c | 22 4b 69 6c 6c 65 64 22 |3,10,10,|"Killed"|
|000041f0| 2c 31 33 2c 31 30 2c 30 | 0a 20 20 20 20 20 20 20 |,13,10,0|. |
|00004200| 20 41 4c 49 47 4e 0a 20 | 20 20 20 20 20 20 20 4d | ALIGN. | M|
|00004210| 4f 56 20 52 30 2c 52 39 | 0a 20 20 20 20 20 20 20 |OV R0,R9|. |
|00004220| 20 41 44 52 20 52 31 2c | 45 52 52 4f 52 42 55 46 | ADR R1,|ERRORBUF|
|00004230| 46 45 52 0a 20 20 20 20 | 20 20 20 20 4d 4f 56 20 |FER. | MOV |
|00004240| 52 32 2c 23 31 36 0a 20 | 20 20 20 20 20 20 20 53 |R2,#16. | S|
|00004250| 57 49 20 22 4f 53 5f 43 | 6f 6e 76 65 72 74 43 61 |WI "OS_C|onvertCa|
|00004260| 72 64 69 6e 61 6c 34 22 | 0a 20 20 20 20 20 20 20 |rdinal4"|. |
|00004270| 20 53 57 49 20 22 4f 53 | 5f 57 72 69 74 65 30 22 | SWI "OS|_Write0"|
|00004280| 0a 20 20 20 20 20 20 20 | 20 53 57 49 20 22 4f 53 |. | SWI "OS|
|00004290| 5f 57 72 69 74 65 53 22 | 0a 20 20 20 20 20 20 20 |_WriteS"|. |
|000042a0| 20 44 42 20 22 20 66 69 | 6c 65 28 73 29 20 63 6c | DB " fi|le(s) cl|
|000042b0| 6f 73 65 64 22 2c 31 33 | 2c 31 30 2c 30 0a 20 20 |osed",13|,10,0. |
|000042c0| 20 20 20 20 20 20 41 4c | 49 47 4e 0a 20 20 20 20 | AL|IGN. |
|000042d0| 20 20 20 20 42 4c 20 52 | 45 4c 45 41 53 45 56 45 | BL R|ELEASEVE|
|000042e0| 43 53 0a 20 20 20 20 20 | 20 20 20 4d 4f 56 20 52 |CS. | MOV R|
|000042f0| 30 2c 23 32 0a 20 20 20 | 20 20 20 20 20 53 54 20 |0,#2. | ST |
|00004300| 52 30 2c 52 45 54 55 52 | 4e 43 4f 44 45 0a 20 20 |R0,RETUR|NCODE. |
|00004310| 20 20 20 20 20 20 42 20 | 4b 49 4c 4c 4d 4f 44 55 | B |KILLMODU|
|00004320| 4c 45 0a 0a 20 20 20 20 | 20 20 20 20 44 53 45 43 |LE.. | DSEC|
|00004330| 54 0a 20 20 20 20 20 20 | 20 20 4f 52 47 20 26 31 |T. | ORG &1|
|00004340| 30 30 30 30 30 30 30 0a | 57 53 54 41 52 54 0a 0a |0000000.|WSTART..|
|00004350| 0a 50 52 49 56 41 54 45 | 57 4f 52 44 20 20 20 20 |.PRIVATE|WORD |
|00004360| 20 41 4c 4c 4f 43 20 34 | 0a 4d 45 53 53 41 47 45 | ALLOC 4|.MESSAGE|
|00004370| 53 20 20 20 20 20 20 20 | 20 41 4c 4c 4f 43 20 34 |S | ALLOC 4|
|00004380| 20 20 20 20 20 20 20 20 | 20 3b 20 4d 65 73 73 61 | | ; Messa|
|00004390| 67 65 73 20 61 72 65 20 | 77 72 69 74 74 65 6e 20 |ges are |written |
|000043a0| 68 65 72 65 20 62 79 20 | 61 20 63 6f 6e 74 72 6f |here by |a contro|
|000043b0| 6c 6c 69 6e 67 0a 20 20 | 20 20 20 20 20 20 20 20 |lling. | |
|000043c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043d0| 20 20 20 20 20 20 3b 20 | 74 61 73 6b 2e 0a 4f 55 | ; |task..OU|
|000043e0| 54 42 55 46 46 45 52 52 | 45 41 44 20 20 20 41 4c |TBUFFERR|EAD AL|
|000043f0| 4c 4f 43 20 34 0a 4f 55 | 54 42 55 46 46 45 52 57 |LOC 4.OU|TBUFFERW|
|00004400| 52 49 54 45 20 20 41 4c | 4c 4f 43 20 34 0a 4f 55 |RITE AL|LOC 4.OU|
|00004410| 54 42 55 46 46 45 52 20 | 20 20 20 20 20 20 41 4c |TBUFFER | AL|
|00004420| 4c 4f 43 20 31 30 32 34 | 20 20 20 20 20 20 3b 20 |LOC 1024| ; |
|00004430| 54 68 65 20 6f 75 74 70 | 75 74 20 63 69 72 63 75 |The outp|ut circu|
|00004440| 6c 61 72 20 62 75 66 66 | 65 72 0a 54 41 53 4b 48 |lar buff|er.TASKH|
|00004450| 41 4e 44 4c 45 20 20 20 | 20 20 20 41 4c 4c 4f 43 |ANDLE | ALLOC|
|00004460| 20 34 0a 4d 45 4d 4f 52 | 59 4d 41 50 56 45 54 4f | 4.MEMOR|YMAPVETO|
|00004470| 45 44 20 41 4c 4c 4f 43 | 20 34 0a 53 55 53 50 45 |ED ALLOC| 4.SUSPE|
|00004480| 4e 44 45 44 20 20 20 20 | 20 20 20 41 4c 4c 4f 43 |NDED | ALLOC|
|00004490| 20 34 0a 54 45 52 4d 49 | 4e 41 54 49 4e 47 20 20 | 4.TERMI|NATING |
|000044a0| 20 20 20 41 4c 4c 4f 43 | 20 34 0a 48 41 4e 44 4c | ALLOC| 4.HANDL|
|000044b0| 45 53 55 53 45 44 20 20 | 20 20 20 41 4c 4c 4f 43 |ESUSED | ALLOC|
|000044c0| 20 34 0a 52 45 54 55 52 | 4e 43 4f 44 45 20 20 20 | 4.RETUR|NCODE |
|000044d0| 20 20 20 41 4c 4c 4f 43 | 20 34 0a 52 45 47 42 55 | ALLOC| 4.REGBU|
|000044e0| 46 20 20 20 20 20 20 20 | 20 20 20 41 4c 4c 4f 43 |F | ALLOC|
|000044f0| 20 34 2a 31 36 0a 4f 4c | 44 43 41 4c 4c 42 41 43 | 4*16.OL|DCALLBAC|
|00004500| 4b 20 20 20 20 20 41 4c | 4c 4f 43 20 34 2a 33 0a |K AL|LOC 4*3.|
|00004510| 4f 4c 44 45 52 52 4f 52 | 48 41 4e 44 4c 45 52 20 |OLDERROR|HANDLER |
|00004520| 41 4c 4c 4f 43 20 34 2a | 33 0a 4f 4c 44 45 58 49 |ALLOC 4*|3.OLDEXI|
|00004530| 54 48 41 4e 44 4c 45 52 | 20 20 41 4c 4c 4f 43 20 |THANDLER| ALLOC |
|00004540| 34 2a 33 0a 48 41 4e 44 | 4c 45 53 20 20 20 20 20 |4*3.HAND|LES |
|00004550| 20 20 20 20 41 4c 4c 4f | 43 20 34 2a 33 32 0a 50 | ALLO|C 4*32.P|
|00004560| 4f 4c 4c 42 4c 4f 43 4b | 20 20 20 20 20 20 20 41 |OLLBLOCK| A|
|00004570| 4c 4c 4f 43 20 32 35 36 | 0a 45 52 52 4f 52 42 55 |LLOC 256|.ERRORBU|
|00004580| 46 46 45 52 20 20 20 20 | 20 41 4c 4c 4f 43 20 32 |FFER | ALLOC 2|
|00004590| 35 36 2b 34 2b 34 0a 0a | 20 20 20 20 20 20 20 20 |56+4+4..| |
|000045a0| 20 20 20 20 20 20 20 20 | 41 4c 4c 4f 43 20 36 34 | |ALLOC 64|
|000045b0| 0a 55 53 52 53 54 41 43 | 4b 0a 0a 0a 57 45 4e 44 |.USRSTAC|K...WEND|
|000045c0| 0a 20 20 20 20 20 20 20 | 20 44 45 4e 44 0a 0a 20 |. | DEND.. |
|000045d0| 20 20 20 20 20 20 20 45 | 4e 44 0a 0a | E|ND.. |
+--------+-------------------------+-------------------------+--------+--------+